Skip to content

Commit 3234d5e

Browse files
authored
Merge pull request #155 from beachtom/main
Fix Bugs
2 parents 7c7e8a4 + b14b4aa commit 3234d5e

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

example/IFCWorker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web-ifc-three/src/IFC/BaseDefinitions.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import { mergeBufferGeometries } from 'three/examples/jsm/utils/BufferGeometryUt
55
import {
66
FlatMesh,
77
IfcGeometry,
8-
IfcAlignment,
98
IFCRELAGGREGATES, IFCRELASSOCIATESMATERIAL,
109
IFCRELCONTAINEDINSPATIALSTRUCTURE,
1110
IFCRELDEFINESBYPROPERTIES,
12-
IFCRELDEFINESBYTYPE, LoaderError, LoaderSettings, RawLineData, Vector, NewIfcModel
11+
IFCRELDEFINESBYTYPE, LoaderError, LoaderSettings, RawLineData, Vector
1312
} from 'web-ifc';
1413
import {ParserProgress} from "./components/IFCParser";
1514

@@ -176,8 +175,6 @@ export interface WebIfcAPI {
176175

177176
GetAllLines(modelID: Number): Vector<number> | Promise<Vector<number>>;
178177

179-
GetAllAlignments(modelID: Number): Vector<IfcAlignment> | Promise<Vector<IfcAlignment>>;
180-
181178
SetGeometryTransformation(modelID: number, transformationMatrix: Array<number>): void | Promise<void>;
182179

183180
GetCoordinationMatrix(modelID: number): Array<number> | Promise<Array<number>>;

web-ifc-three/src/IFC/web-workers/handlers/WebIfcHandler.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
WorkerAPIs
99
} from '../BaseDefinitions';
1010

11-
import { NewIfcModel, FlatMesh, IfcAlignment, IfcGeometry, LoaderError, LoaderSettings, RawLineData, Vector } from 'web-ifc';
11+
import { NewIfcModel, FlatMesh, IfcGeometry, LoaderError, LoaderSettings, RawLineData, Vector } from 'web-ifc';
1212
import { IFCWorkerHandler } from '../IFCWorkerHandler';
1313
import { Serializer } from '../serializer/Serializer';
1414

@@ -97,13 +97,6 @@ export class WebIfcHandler implements WebIfcAPI {
9797
return this.handler.request(this.API, WorkerActions.GetAllLines, { modelID });
9898
}
9999

100-
async GetAllAlignments(modelID: number): Promise<Vector<IfcAlignment>> {
101-
this.handler.serializeHandlers[this.handler.requestID] = (vector: SerializedVector) => {
102-
return this.serializer.reconstructVector(vector);
103-
}
104-
return this.handler.request(this.API, WorkerActions.GetAllLines, { modelID });
105-
}
106-
107100
async SetGeometryTransformation(modelID: number, transformationMatrix: number[]): Promise<void> {
108101
return this.handler.request(this.API, WorkerActions.SetGeometryTransformation, {
109102
modelID,

0 commit comments

Comments
 (0)