@xeokit/xeokit-sdk 2.4.2-beta-20 → 2.4.2-beta-21

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.
@@ -56361,10 +56361,15 @@ class SceneModelMesh {
56361
56361
  */
56362
56362
  get aabb() { // called by SceneModelEntity
56363
56363
  if (this._aabbDirty) {
56364
- if (this.obb && this.transform) {
56365
- math.transformOBB3(this.transform.worldMatrix, this.obb, tempOBB3);
56366
- math.transformOBB3(this.model.worldMatrix, tempOBB3, tempOBB3b);
56367
- math.OBB3ToAABB3(tempOBB3b, this._aabb);
56364
+ if (this.obb) {
56365
+ if (this.transform) {
56366
+ math.transformOBB3(this.transform.worldMatrix, this.obb, tempOBB3);
56367
+ math.transformOBB3(this.model.worldMatrix, tempOBB3, tempOBB3b);
56368
+ math.OBB3ToAABB3(tempOBB3b, this._aabb);
56369
+ } else {
56370
+ math.transformOBB3(this.model.worldMatrix, this.obb, tempOBB3);
56371
+ math.OBB3ToAABB3(tempOBB3, this._aabb);
56372
+ }
56368
56373
  }
56369
56374
  this._aabbDirty = false;
56370
56375
  }
@@ -56357,10 +56357,15 @@ class SceneModelMesh {
56357
56357
  */
56358
56358
  get aabb() { // called by SceneModelEntity
56359
56359
  if (this._aabbDirty) {
56360
- if (this.obb && this.transform) {
56361
- math.transformOBB3(this.transform.worldMatrix, this.obb, tempOBB3);
56362
- math.transformOBB3(this.model.worldMatrix, tempOBB3, tempOBB3b);
56363
- math.OBB3ToAABB3(tempOBB3b, this._aabb);
56360
+ if (this.obb) {
56361
+ if (this.transform) {
56362
+ math.transformOBB3(this.transform.worldMatrix, this.obb, tempOBB3);
56363
+ math.transformOBB3(this.model.worldMatrix, tempOBB3, tempOBB3b);
56364
+ math.OBB3ToAABB3(tempOBB3b, this._aabb);
56365
+ } else {
56366
+ math.transformOBB3(this.model.worldMatrix, this.obb, tempOBB3);
56367
+ math.OBB3ToAABB3(tempOBB3, this._aabb);
56368
+ }
56364
56369
  }
56365
56370
  this._aabbDirty = false;
56366
56371
  }
@@ -17212,7 +17212,7 @@ this._colorizing=false;this._transparent=opacity<255;/**
17212
17212
  */},{key:"aabb",get:/**
17213
17213
  * @private
17214
17214
  */function get(){// called by SceneModelEntity
17215
- if(this._aabbDirty){if(this.obb&&this.transform){math.transformOBB3(this.transform.worldMatrix,this.obb,tempOBB3);math.transformOBB3(this.model.worldMatrix,tempOBB3,tempOBB3b);math.OBB3ToAABB3(tempOBB3b,this._aabb);}this._aabbDirty=false;}return this._aabb;}/**
17215
+ if(this._aabbDirty){if(this.obb){if(this.transform){math.transformOBB3(this.transform.worldMatrix,this.obb,tempOBB3);math.transformOBB3(this.model.worldMatrix,tempOBB3,tempOBB3b);math.OBB3ToAABB3(tempOBB3b,this._aabb);}else{math.transformOBB3(this.model.worldMatrix,this.obb,tempOBB3);math.OBB3ToAABB3(tempOBB3,this._aabb);}}this._aabbDirty=false;}return this._aabb;}/**
17216
17216
  * @private
17217
17217
  */,set:function set(aabb){// Called by SceneModel
17218
17218
  this._aabb=aabb;}},{key:"_destroy",value:function _destroy(){this.model.scene._renderer.putPickID(this.pickId);}}]);return SceneModelMesh;}();/**