bimatter-viewer-react 0.10.0 → 0.10.1
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/lib/{IFCLoader-DinYHbEV.js → IFCLoader-D_jyTADr.js} +4 -1
- package/lib/Loaders/IFCLoader/IFCLoader.d.ts +2 -0
- package/lib/api/loader.d.ts +1 -0
- package/lib/assets/{BmtConverterWorker-Ev3B7NtY.js → BmtConverterWorker-D2OaBWQg.js} +1 -1
- package/lib/assets/{IFCWorker-CKGeCb9z.js → IFCWorker-qQ8Zt4MA.js} +1 -1
- package/lib/index.js +2562 -2346
- package/lib/store/ViewerStore.d.ts +2 -0
- package/lib/utils/ClippingUtils/ClippingEdges.d.ts +1 -0
- package/lib/utils/DimentionsUtils/DimentionsUtils.d.ts +41 -2
- package/lib/workers/IFCWorker.d.ts +1 -0
- package/package.json +1 -1
|
@@ -191908,6 +191908,7 @@ var S_ = class {
|
|
|
191908
191908
|
useIfcElemetAssembly = !1;
|
|
191909
191909
|
useIfcColors = !1;
|
|
191910
191910
|
useIfcSpace = !0;
|
|
191911
|
+
mergeVertices = !0;
|
|
191911
191912
|
coordinationMatrix = null;
|
|
191912
191913
|
parser;
|
|
191913
191914
|
propertySerializer;
|
|
@@ -192004,7 +192005,8 @@ var S_ = class {
|
|
|
192004
192005
|
let e = this.coordinationMatrix?.toArray(), t = new E_(this.parser, a, {
|
|
192005
192006
|
geometryTransformation: e,
|
|
192006
192007
|
maxGeometriesPerMesh: this.chunk,
|
|
192007
|
-
maxMeshBytes: this.maxMeshBytes
|
|
192008
|
+
maxMeshBytes: this.maxMeshBytes,
|
|
192009
|
+
mergeVertices: this.mergeVertices
|
|
192008
192010
|
});
|
|
192009
192011
|
n?.onGeometryProgress?.({
|
|
192010
192012
|
emittedChunks: 0,
|
|
@@ -192459,6 +192461,7 @@ var S_ = class {
|
|
|
192459
192461
|
});
|
|
192460
192462
|
}
|
|
192461
192463
|
optimizeIfcGeometryData(e) {
|
|
192464
|
+
if (!this.options.mergeVertices) return e;
|
|
192462
192465
|
let t = this.mergeIfcGeometryData(e);
|
|
192463
192466
|
return t ? {
|
|
192464
192467
|
...e,
|
|
@@ -7,6 +7,7 @@ type IfcParserOptions = {
|
|
|
7
7
|
geometryTransformation?: number[];
|
|
8
8
|
maxGeometriesPerMesh: number;
|
|
9
9
|
maxMeshBytes: number;
|
|
10
|
+
mergeVertices: boolean;
|
|
10
11
|
};
|
|
11
12
|
type IfcModelDataResult = {
|
|
12
13
|
data: BmtModelData;
|
|
@@ -43,6 +44,7 @@ export declare class IFCLoader {
|
|
|
43
44
|
useIfcElemetAssembly: boolean;
|
|
44
45
|
useIfcColors: boolean;
|
|
45
46
|
useIfcSpace: boolean;
|
|
47
|
+
mergeVertices: boolean;
|
|
46
48
|
private coordinationMatrix;
|
|
47
49
|
private parser;
|
|
48
50
|
private propertySerializer;
|
package/lib/api/loader.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export type ViewerLoadModelOptions = {
|
|
|
11
11
|
collectWorkerChunks?: boolean;
|
|
12
12
|
materialMode?: ViewerMaterialMode;
|
|
13
13
|
maxMeshBytes?: number;
|
|
14
|
+
mergeVertices?: boolean;
|
|
14
15
|
onChunk?: (chunk: ViewerLoaderWorkerChunk) => void;
|
|
15
16
|
onProgress?: (progress: WorkerProgressEvent) => void;
|
|
16
17
|
streamGeometryChunks?: boolean;
|