@xeokit/xeokit-sdk 2.4.0-alpha-83 → 2.4.0-alpha-85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.4.0-alpha-83",
3
+ "version": "2.4.0-alpha-85",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -154,7 +154,11 @@ function load(viewer, options, inflatedData, sceneModel, metaModel, manifestCtx)
154
154
  const numTiles = eachTileEntitiesPortion.length;
155
155
 
156
156
  if (metaModel) {
157
- metaModel.loadData(metadata); // Can be empty
157
+ metaModel.loadData(metadata, {
158
+ includeTypes: options.includeTypes,
159
+ excludeTypes: options.excludeTypes,
160
+ globalizeObjectIds: options.globalizeObjectIds
161
+ }); // Can be empty
158
162
  }
159
163
 
160
164
  // Create textures
@@ -425,7 +429,7 @@ function load(viewer, options, inflatedData, sceneModel, metaModel, manifestCtx)
425
429
  atLastGeometry
426
430
  ? indices.length
427
431
  : eachGeometryIndicesPortion [geometryIndex + 1]));
428
- geometryValid = (geometryArrays.geometryPositions.length > 0 && geometryArrays.geometryIndices.length > 0);
432
+ geometryValid = (geometryArrays.geometryPositions.length > 0 && geometryArrays.geometryIndices.length > 0);
429
433
  break;
430
434
  default:
431
435
  continue;
@@ -378,7 +378,7 @@ class MetaModel {
378
378
  const propertySet = metaModelData.propertySets[i];
379
379
  propertySet.originalSystemId = propertySet.id;
380
380
  if (globalize) {
381
- propertySet.id = math.globalizeObjectId(mothis.id, propertySet.id);
381
+ propertySet.id = math.globalizeObjectId(this.id, propertySet.id);
382
382
  }
383
383
  }
384
384
  }
@@ -2953,7 +2953,7 @@ export class SceneModel extends Component {
2953
2953
  return dtxLayer;
2954
2954
  }
2955
2955
  }
2956
- console.log(`[SceneModel ${this.id}]: creating TrianglesDataTextureLayer`);
2956
+ console.info(`[SceneModel ${this.id}]: creating TrianglesDataTextureLayer`);
2957
2957
  dtxLayer = new TrianglesDataTextureLayer(this, {layerIndex: 0, origin}); // layerIndex is set in #finalize()
2958
2958
  this._dtxLayers[layerId] = dtxLayer;
2959
2959
  this.layerList.push(dtxLayer);
@@ -2976,7 +2976,7 @@ export class SceneModel extends Component {
2976
2976
  while (!vboBatchingLayer) {
2977
2977
  switch (cfg.primitive) {
2978
2978
  case "triangles":
2979
- console.log(`[SceneModel ${this.id}]: creating TrianglesBatchingLayer`);
2979
+ console.info(`[SceneModel ${this.id}]: creating TrianglesBatchingLayer`);
2980
2980
  vboBatchingLayer = new TrianglesBatchingLayer({
2981
2981
  model,
2982
2982
  textureSet,
@@ -2991,7 +2991,7 @@ export class SceneModel extends Component {
2991
2991
  });
2992
2992
  break;
2993
2993
  case "solid":
2994
- console.log(`[SceneModel ${this.id}]: creating TrianglesBatchingLayer`);
2994
+ console.info(`[SceneModel ${this.id}]: creating TrianglesBatchingLayer`);
2995
2995
  vboBatchingLayer = new TrianglesBatchingLayer({
2996
2996
  model,
2997
2997
  textureSet,
@@ -3006,7 +3006,7 @@ export class SceneModel extends Component {
3006
3006
  });
3007
3007
  break;
3008
3008
  case "surface":
3009
- console.log(`[SceneModel ${this.id}]: creating TrianglesBatchingLayer`);
3009
+ console.info(`[SceneModel ${this.id}]: creating TrianglesBatchingLayer`);
3010
3010
  vboBatchingLayer = new TrianglesBatchingLayer({
3011
3011
  model,
3012
3012
  textureSet,
@@ -3021,7 +3021,7 @@ export class SceneModel extends Component {
3021
3021
  });
3022
3022
  break;
3023
3023
  case "lines":
3024
- console.log(`[SceneModel ${this.id}]: creating LinesBatchingLayer`);
3024
+ console.info(`[SceneModel ${this.id}]: creating LinesBatchingLayer`);
3025
3025
  vboBatchingLayer = new LinesBatchingLayer({
3026
3026
  model,
3027
3027
  layerIndex: 0, // This is set in #finalize()
@@ -3033,7 +3033,7 @@ export class SceneModel extends Component {
3033
3033
  });
3034
3034
  break;
3035
3035
  case "points":
3036
- console.log(`[SceneModel ${this.id}]: creating PointsBatchingLayer`);
3036
+ console.info(`[SceneModel ${this.id}]: creating PointsBatchingLayer`);
3037
3037
  vboBatchingLayer = new PointsBatchingLayer({
3038
3038
  model,
3039
3039
  layerIndex: 0, // This is set in #finalize()
@@ -3087,7 +3087,7 @@ export class SceneModel extends Component {
3087
3087
  while (!vboInstancingLayer) {
3088
3088
  switch (geometry.primitive) {
3089
3089
  case "triangles":
3090
- console.log(`[SceneModel ${this.id}]: creating TrianglesInstancingLayer`);
3090
+ console.info(`[SceneModel ${this.id}]: creating TrianglesInstancingLayer`);
3091
3091
  vboInstancingLayer = new TrianglesInstancingLayer({
3092
3092
  model,
3093
3093
  textureSet,
@@ -3098,7 +3098,7 @@ export class SceneModel extends Component {
3098
3098
  });
3099
3099
  break;
3100
3100
  case "solid":
3101
- console.log(`[SceneModel ${this.id}]: creating TrianglesInstancingLayer`);
3101
+ console.info(`[SceneModel ${this.id}]: creating TrianglesInstancingLayer`);
3102
3102
  vboInstancingLayer = new TrianglesInstancingLayer({
3103
3103
  model,
3104
3104
  textureSet,
@@ -3109,7 +3109,7 @@ export class SceneModel extends Component {
3109
3109
  });
3110
3110
  break;
3111
3111
  case "surface":
3112
- console.log(`[SceneModel ${this.id}]: creating TrianglesInstancingLayer`);
3112
+ console.info(`[SceneModel ${this.id}]: creating TrianglesInstancingLayer`);
3113
3113
  vboInstancingLayer = new TrianglesInstancingLayer({
3114
3114
  model,
3115
3115
  textureSet,
@@ -3120,7 +3120,7 @@ export class SceneModel extends Component {
3120
3120
  });
3121
3121
  break;
3122
3122
  case "lines":
3123
- console.log(`[SceneModel ${this.id}]: creating LinesInstancingLayer`);
3123
+ console.info(`[SceneModel ${this.id}]: creating LinesInstancingLayer`);
3124
3124
  vboInstancingLayer = new LinesInstancingLayer({
3125
3125
  model,
3126
3126
  textureSet,
@@ -3130,7 +3130,7 @@ export class SceneModel extends Component {
3130
3130
  });
3131
3131
  break;
3132
3132
  case "points":
3133
- console.log(`[SceneModel ${this.id}]: creating PointsInstancingLayer`);
3133
+ console.info(`[SceneModel ${this.id}]: creating PointsInstancingLayer`);
3134
3134
  vboInstancingLayer = new PointsInstancingLayer({
3135
3135
  model,
3136
3136
  textureSet,
@@ -3814,4 +3814,4 @@ function createGeometryOBB(geometry) {
3814
3814
  math.expandAABB3Points3(localAABB, geometry.positions);
3815
3815
  math.AABB3ToOBB3(localAABB, geometry.obb);
3816
3816
  }
3817
- }
3817
+ }
@@ -760,7 +760,7 @@ export class TrianglesDataTextureLayer {
760
760
  * flags/flags2 set since the previous invocation of `_beginDeferredFlags`.
761
761
  */
762
762
  _uploadDeferredFlags() {
763
- // console.log("_uploadDeferredFlags")
763
+ console.info("_uploadDeferredFlags")
764
764
  this._deferredSetFlagsActive = false;
765
765
  if (!this._deferredSetFlagsDirty) {
766
766
  return;
@@ -849,14 +849,14 @@ export class TrianglesDataTextureLayer {
849
849
  // object colors
850
850
  textureState.texturePerObjectIdColorsAndFlags._textureData.set(tempUint8Array4, subPortionId * 32);
851
851
  if (this._deferredSetFlagsActive) {
852
- // console.log("_subPortionSetColor defer");
852
+ console.info("_subPortionSetColor defer");
853
853
  this._deferredSetFlagsDirty = true;
854
854
  return;
855
855
  }
856
856
  if (++this._numUpdatesInFrame >= MAX_OBJECT_UPDATES_IN_FRAME_WITHOUT_BATCHED_UPDATE) {
857
857
  this._beginDeferredFlags(); // Subsequent flags updates now deferred
858
858
  }
859
- // console.log("_subPortionSetColor write through");
859
+ console.info("_subPortionSetColor write through");
860
860
  gl.bindTexture(gl.TEXTURE_2D, textureState.texturePerObjectIdColorsAndFlags._texture);
861
861
  gl.texSubImage2D(
862
862
  gl.TEXTURE_2D,
@@ -964,14 +964,14 @@ export class TrianglesDataTextureLayer {
964
964
  // object flags
965
965
  textureState.texturePerObjectIdColorsAndFlags._textureData.set(tempUint8Array4, subPortionId * 32 + 8);
966
966
  if (this._deferredSetFlagsActive || deferred) {
967
- // console.log("_subPortionSetFlags set flags defer");
967
+ console.info("_subPortionSetFlags set flags defer");
968
968
  this._deferredSetFlagsDirty = true;
969
969
  return;
970
970
  }
971
971
  if (++this._numUpdatesInFrame >= MAX_OBJECT_UPDATES_IN_FRAME_WITHOUT_BATCHED_UPDATE) {
972
972
  this._beginDeferredFlags(); // Subsequent flags updates now deferred
973
973
  }
974
- // console.log("_subPortionSetFlags set flags write through");
974
+ console.info("_subPortionSetFlags set flags write through");
975
975
  gl.bindTexture(gl.TEXTURE_2D, textureState.texturePerObjectIdColorsAndFlags._texture);
976
976
  gl.texSubImage2D(
977
977
  gl.TEXTURE_2D,
@@ -1018,7 +1018,7 @@ export class TrianglesDataTextureLayer {
1018
1018
  if (++this._numUpdatesInFrame >= MAX_OBJECT_UPDATES_IN_FRAME_WITHOUT_BATCHED_UPDATE) {
1019
1019
  this._beginDeferredFlags(); // Subsequent flags updates now deferred
1020
1020
  }
1021
- // console.log("_subPortionSetFlags2 set flags write through");
1021
+ console.info("_subPortionSetFlags2 set flags write through");
1022
1022
  gl.bindTexture(gl.TEXTURE_2D, textureState.texturePerObjectIdColorsAndFlags._texture);
1023
1023
  gl.texSubImage2D(
1024
1024
  gl.TEXTURE_2D,
@@ -45,7 +45,7 @@ class TrianglesBatchingLayer {
45
45
  */
46
46
  constructor(cfg) {
47
47
 
48
- console.log("Creating TrianglesBatchingLayer");
48
+ console.info("Creating TrianglesBatchingLayer");
49
49
 
50
50
  /**
51
51
  * Owner model
@@ -1319,4 +1319,4 @@ class TrianglesBatchingLayer {
1319
1319
  }
1320
1320
  }
1321
1321
 
1322
- export {TrianglesBatchingLayer};
1322
+ export {TrianglesBatchingLayer};
@@ -37,7 +37,7 @@ class TrianglesInstancingLayer {
37
37
  */
38
38
  constructor(cfg) {
39
39
 
40
- console.log("Creating TrianglesInstancingLayer");
40
+ console.info("Creating TrianglesInstancingLayer");
41
41
 
42
42
  /**
43
43
  * Owner model
@@ -103,7 +103,6 @@ function httpRequest(args) {
103
103
  var xhr = new XMLHttpRequest();
104
104
  xhr.open(args.method || "GET", args.url, true);
105
105
  xhr.onload = function (e) {
106
- console.log(args.url, xhr.readyState, xhr.status);
107
106
  if (xhr.readyState === 4) {
108
107
  if (xhr.status === 200) {
109
108
  resolve(xhr.responseXML);