ifc-reader-2 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-types.d.ts +6 -1
- package/dist/ifc-reader.api.d.ts +9 -0
- package/dist/index.cjs +23 -23
- package/dist/index.js +9112 -9063
- package/package.json +1 -1
package/dist/base-types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Matrix4 } from "three";
|
|
1
2
|
export interface IfcProperties {
|
|
2
3
|
[expressID: number]: {
|
|
3
4
|
[attribute: string]: any;
|
|
@@ -49,13 +50,17 @@ export declare class ViralutionSolid {
|
|
|
49
50
|
Vertices: ViralPoint[];
|
|
50
51
|
Indices: number[];
|
|
51
52
|
Buffer: number[];
|
|
53
|
+
Id: string;
|
|
54
|
+
GeometryId: string;
|
|
55
|
+
Transform: number[];
|
|
52
56
|
}
|
|
53
|
-
export
|
|
57
|
+
export declare class RevitTransform {
|
|
54
58
|
BasisX: ViralPoint;
|
|
55
59
|
BasisY: ViralPoint;
|
|
56
60
|
BasisZ: ViralPoint;
|
|
57
61
|
Offset: ViralPoint;
|
|
58
62
|
Id: string;
|
|
63
|
+
Matrix: Matrix4;
|
|
59
64
|
}
|
|
60
65
|
export declare class ViralPoint {
|
|
61
66
|
X: number;
|
package/dist/ifc-reader.api.d.ts
CHANGED
|
@@ -15,9 +15,18 @@ export declare class IFCReader {
|
|
|
15
15
|
load2(data: Uint8Array, coordinate?: boolean): Promise<ViralutionIFCModel>;
|
|
16
16
|
readIfcFile(data: Uint8Array): Promise<number>;
|
|
17
17
|
private getAllGeometries2;
|
|
18
|
+
private _groupByGeometryId;
|
|
18
19
|
private getMesh2;
|
|
19
20
|
private getGeometry;
|
|
20
21
|
private getAllProperties;
|
|
21
22
|
private getWorldCoordinationMatrix;
|
|
22
23
|
private _dispose;
|
|
24
|
+
flattenObject(obj: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}, parentKey?: string, result?: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}): {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
};
|
|
31
|
+
private generateInstancedMesh;
|
|
23
32
|
}
|