@xeokit/xeokit-sdk 2.6.67 → 2.6.68
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/xeokit-sdk.cjs.js +7754 -29762
- package/dist/xeokit-sdk.es.js +7754 -29762
- package/dist/xeokit-sdk.es5.js +224 -3114
- package/dist/xeokit-sdk.min.cjs.js +4 -4
- package/dist/xeokit-sdk.min.es.js +4 -4
- package/dist/xeokit-sdk.min.es5.js +4 -4
- package/package.json +1 -1
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +2 -2
- package/src/viewer/scene/webgl/sao/SAOOcclusionRenderer.js +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xeokit/xeokit-sdk",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.68",
|
|
4
4
|
"description": "3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision",
|
|
5
5
|
"module": "./dist/xeokit-sdk.es.js",
|
|
6
6
|
"main": "./dist/xeokit-sdk.cjs.js",
|
|
@@ -520,7 +520,7 @@ function load(viewer, options, inflatedData, sceneModel, metaModel, manifestCtx)
|
|
|
520
520
|
case 7:
|
|
521
521
|
geometryArrays.primitiveName = "lines";
|
|
522
522
|
geometryArrays.geometryPositions = positions.subarray(eachGeometryPositionsPortion [geometryIndex], atLastGeometry ? positions.length : eachGeometryPositionsPortion [geometryIndex + 1]);
|
|
523
|
-
geometryArrays.decompressedPositions = geometryCompressionUtils.decompressPositions(geometryArrays.geometryPositions,
|
|
523
|
+
geometryArrays.decompressedPositions = geometryCompressionUtils.decompressPositions(geometryArrays.geometryPositions, reusedGeometriesDecodeMatrix);
|
|
524
524
|
ifcLabel = buildVectorTextGeometry({
|
|
525
525
|
origin: geometryArrays.decompressedPositions,
|
|
526
526
|
text: axisLabel,
|
|
@@ -545,7 +545,7 @@ function load(viewer, options, inflatedData, sceneModel, metaModel, manifestCtx)
|
|
|
545
545
|
if (geometryReuseCount > 1000) { // TODO: Heuristic to force batching of instanced geometry beyond a certain reuse count (or budget)?
|
|
546
546
|
// geometryArrays.batchThisMesh = true;
|
|
547
547
|
}
|
|
548
|
-
if (geometryArrays.geometryPositions.length > 1000) { // TODO: Heuristic to force batching on instanced geometry above certain vertex size?
|
|
548
|
+
if (geometryArrays.geometryPositions && geometryArrays.geometryPositions.length > 1000) { // TODO: Heuristic to force batching on instanced geometry above certain vertex size?
|
|
549
549
|
// geometryArrays.batchThisMesh = true;
|
|
550
550
|
}
|
|
551
551
|
if (geometryArrays.batchThisMesh) {
|
|
@@ -46,6 +46,12 @@ class SAOOcclusionRenderer {
|
|
|
46
46
|
this._uvBuf = null;
|
|
47
47
|
this._positionsBuf = null;
|
|
48
48
|
this._indicesBuf = null;
|
|
49
|
+
|
|
50
|
+
this.init();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
init() {
|
|
54
|
+
this._rebuild = true;
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
render(depthRenderBuffer) {
|
|
@@ -136,10 +142,12 @@ class SAOOcclusionRenderer {
|
|
|
136
142
|
dirty = true;
|
|
137
143
|
}
|
|
138
144
|
|
|
139
|
-
if (!dirty) {
|
|
145
|
+
if (! (dirty || this._rebuild)) {
|
|
140
146
|
return;
|
|
141
147
|
}
|
|
142
148
|
|
|
149
|
+
this._rebuild = false;
|
|
150
|
+
|
|
143
151
|
const gl = this._scene.canvas.gl;
|
|
144
152
|
|
|
145
153
|
if (this._program) {
|