@xeokit/xeokit-sdk 2.6.68 → 2.6.71

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.
Files changed (30) hide show
  1. package/dist/xeokit-sdk.cjs.js +34005 -7863
  2. package/dist/xeokit-sdk.es.js +34005 -7864
  3. package/dist/xeokit-sdk.es5.js +3190 -281
  4. package/dist/xeokit-sdk.min.cjs.js +10 -4
  5. package/dist/xeokit-sdk.min.es.js +11 -5
  6. package/dist/xeokit-sdk.min.es5.js +10 -4
  7. package/package.json +3 -1
  8. package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +86 -0
  9. package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -0
  10. package/src/plugins/LASLoaderPlugin/LASDefaultDataSource.js +13 -1
  11. package/src/plugins/LASLoaderPlugin/LASLoaderPlugin.js +89 -43
  12. package/src/plugins/TreeViewPlugin/TreeViewPlugin.js +4 -3
  13. package/src/plugins/index.js +1 -0
  14. package/src/viewer/scene/math/math.js +18 -5
  15. package/src/viewer/scene/model/vbo/batching/lines/renderers/VBOBatchingLineSnapInitRenderer.js +2 -0
  16. package/src/viewer/scene/model/vbo/batching/lines/renderers/VBOBatchingLinesSnapInitRenderer.js +2 -0
  17. package/src/viewer/scene/model/vbo/batching/lines/renderers/VBOBatchingLinesSnapRenderer.js +2 -0
  18. package/src/viewer/scene/model/vbo/batching/points/renderers/VBOBatchingPointsSnapInitRenderer.js +2 -0
  19. package/src/viewer/scene/model/vbo/batching/points/renderers/VBOBatchingPointsSnapRenderer.js +2 -0
  20. package/src/viewer/scene/model/vbo/batching/triangles/renderers/TrianglesSnapInitRenderer.js +2 -0
  21. package/src/viewer/scene/model/vbo/batching/triangles/renderers/TrianglesSnapRenderer.js +2 -0
  22. package/src/viewer/scene/model/vbo/instancing/lines/renderers/VBOInstancingLinesSnapInitRenderer.js +1 -24
  23. package/src/viewer/scene/model/vbo/instancing/lines/renderers/VBOInstancingLinesSnapRenderer.js +2 -19
  24. package/src/viewer/scene/model/vbo/instancing/points/renderers/VBOInstancingPointsSnapInitRenderer.js +1 -24
  25. package/src/viewer/scene/model/vbo/instancing/points/renderers/VBOInstancingPointsSnapRenderer.js +1 -19
  26. package/src/viewer/scene/model/vbo/instancing/triangles/renderers/TrianglesSnapInitRenderer.js +1 -24
  27. package/src/viewer/scene/model/vbo/instancing/triangles/renderers/TrianglesSnapRenderer.js +2 -19
  28. package/types/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.d.ts +36 -0
  29. package/types/plugins/CxConverterIFCLoaderPlugin/index.d.ts +1 -0
  30. package/types/plugins/index.d.ts +1 -0
@@ -123,17 +123,6 @@ export class TrianglesSnapRenderer extends VBORenderer {
123
123
 
124
124
  this.setSectionPlanesStateUniforms(instancingLayer);
125
125
 
126
-
127
- this._aModelMatrixCol0.bindArrayBuffer(state.modelMatrixCol0Buf);
128
- this._aModelMatrixCol1.bindArrayBuffer(state.modelMatrixCol1Buf);
129
- this._aModelMatrixCol2.bindArrayBuffer(state.modelMatrixCol2Buf);
130
- gl.vertexAttribDivisor(this._aModelMatrixCol0.location, 1);
131
- gl.vertexAttribDivisor(this._aModelMatrixCol1.location, 1);
132
- gl.vertexAttribDivisor(this._aModelMatrixCol2.location, 1);
133
-
134
- this._aFlags.bindArrayBuffer(state.flagsBuf);
135
- gl.vertexAttribDivisor(this._aFlags.location, 1);
136
-
137
126
  if (frameCtx.snapMode === "edge" ) {
138
127
  if (state.edgeIndicesBuf) {
139
128
  state.edgeIndicesBuf.bind();
@@ -143,14 +132,8 @@ export class TrianglesSnapRenderer extends VBORenderer {
143
132
  } else {
144
133
  gl.drawArraysInstanced(gl.POINTS, 0, state.positionsBuf.numItems, state.numInstances);
145
134
  }
146
- // Cleanup
147
- gl.vertexAttribDivisor(this._aModelMatrixCol0.location, 0);
148
- gl.vertexAttribDivisor(this._aModelMatrixCol1.location, 0);
149
- gl.vertexAttribDivisor(this._aModelMatrixCol2.location, 0);
150
- gl.vertexAttribDivisor(this._aFlags.location, 0);
151
- if (this._aOffset) {
152
- gl.vertexAttribDivisor(this._aOffset.location, 0);
153
- }
135
+
136
+ gl.bindVertexArray(null);
154
137
  }
155
138
 
156
139
  _allocate() {
@@ -0,0 +1,36 @@
1
+ import { Plugin } from "../../viewer/Plugin";
2
+ import { Viewer } from "../../viewer/Viewer";
3
+ import { GLTFLoaderPlugin } from "../GLTFLoaderPlugin/GLTFLoaderPlugin";
4
+ import { SceneModel } from "../../viewer/scene/models/SceneModel";
5
+
6
+ /**
7
+ * {@link Viewer} plugin that loads IFC models using the CxConverter library.
8
+ */
9
+ export declare class CxConverterIFCLoaderPlugin extends Plugin {
10
+ /**
11
+ * @constructor
12
+ * @param {Viewer} viewer The Viewer.
13
+ * @param {Object} [cfg] Plugin configuration.
14
+ */
15
+ constructor(viewer: Viewer, cfg?: {});
16
+
17
+ /**
18
+ * The GLTFLoaderPlugin used internally to load the converted GLTF.
19
+ */
20
+ gltfLoader: GLTFLoaderPlugin;
21
+
22
+ /**
23
+ * Loads an IFC model from the given source.
24
+ *
25
+ * @param {Object} params Loading parameters.
26
+ * @param {String} params.src Path to an IFC file.
27
+ * @param {Function} [params.progressCallback] Callback to track loading progress.
28
+ * @param {Function} [params.progressTextCallback] Callback to track loading progress with text updates.
29
+ * @returns {Promise<SceneModel>} A promise that resolves to the loaded SceneModel.
30
+ */
31
+ load(params?: {
32
+ src: string;
33
+ progressCallback?: (progress: number) => void;
34
+ progressTextCallback?: (text: string) => void;
35
+ }): Promise<SceneModel>;
36
+ }
@@ -0,0 +1 @@
1
+ export * from "./CxConverterIFCLoaderPlugin";
@@ -3,6 +3,7 @@ export * from "./AnnotationsPlugin";
3
3
  export * from "./AxisGizmoPlugin";
4
4
  export * from "./BCFViewpointsPlugin";
5
5
  export * from "./CityJSONLoaderPlugin";
6
+ export * from "./CxConverterIFCLoaderPlugin";
6
7
  export * from "./DistanceMeasurementsPlugin";
7
8
  export * from "./DotBIMLoaderPlugin";
8
9
  export * from "./FastNavPlugin";