@xeokit/xeokit-sdk 2.4.0-alpha-6 → 2.4.0-alpha-7
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 +104 -173
- package/dist/xeokit-sdk.es.js +104 -173
- package/dist/xeokit-sdk.es5.js +104 -116
- package/dist/xeokit-sdk.min.cjs.js +6 -6
- package/dist/xeokit-sdk.min.es.js +6 -6
- package/dist/xeokit-sdk.min.es5.js +5 -5
- package/package.json +1 -1
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -8212,7 +8212,7 @@ const tempIntRGB$1 = new Uint16Array([0, 0, 0]);
|
|
|
8212
8212
|
/**
|
|
8213
8213
|
* @private
|
|
8214
8214
|
*/
|
|
8215
|
-
class VBOSceneModelNode
|
|
8215
|
+
class VBOSceneModelNode {
|
|
8216
8216
|
|
|
8217
8217
|
/**
|
|
8218
8218
|
* @private
|
|
@@ -9263,7 +9263,7 @@ class Marker extends Component {
|
|
|
9263
9263
|
}
|
|
9264
9264
|
this._entity = entity;
|
|
9265
9265
|
if (this._entity) {
|
|
9266
|
-
if (this._entity instanceof VBOSceneModelNode
|
|
9266
|
+
if (this._entity instanceof VBOSceneModelNode) {
|
|
9267
9267
|
this._onEntityModelDestroyed = this._entity.model.on("destroyed", () => { // VBOSceneModelNode does not fire events, and cannot exist beyond its VBOSceneModel
|
|
9268
9268
|
this._entity = null; // Marker now may become visible, if it was synched to invisible Entity
|
|
9269
9269
|
this._onEntityModelDestroyed = null;
|
|
@@ -9474,6 +9474,7 @@ class Wire {
|
|
|
9474
9474
|
wireStyle['-o-transform'] = 'rotate(0deg)';
|
|
9475
9475
|
wireStyle['transform'] = 'rotate(0deg)';
|
|
9476
9476
|
wireStyle["opacity"] = 1.0;
|
|
9477
|
+
wireStyle["pointer-events"] = "none";
|
|
9477
9478
|
if (cfg.onContextMenu) ;
|
|
9478
9479
|
|
|
9479
9480
|
parentElement.appendChild(wire);
|
|
@@ -9641,7 +9642,7 @@ class Dot {
|
|
|
9641
9642
|
dotStyle.left = 0 + "px";
|
|
9642
9643
|
dotStyle["box-shadow"] = "0 2px 5px 0 #182A3D;";
|
|
9643
9644
|
dotStyle["opacity"] = 1.0;
|
|
9644
|
-
dotStyle["pointer-events"] = "
|
|
9645
|
+
dotStyle["pointer-events"] = "none";
|
|
9645
9646
|
if (cfg.onContextMenu) ;
|
|
9646
9647
|
parentElement.appendChild(dot);
|
|
9647
9648
|
|
|
@@ -9719,7 +9720,6 @@ class Dot {
|
|
|
9719
9720
|
|
|
9720
9721
|
setClickable(clickable) {
|
|
9721
9722
|
this._dotClickable.style["pointer-events"] = (!!clickable) ? "all" : "none";
|
|
9722
|
-
this._dot.style["pointer-events"] = (!!clickable) ? "all" : "none";
|
|
9723
9723
|
}
|
|
9724
9724
|
|
|
9725
9725
|
setHighlighted(highlighted) {
|
|
@@ -16215,7 +16215,7 @@ var buildEdgeIndices = (function () {
|
|
|
16215
16215
|
* @private
|
|
16216
16216
|
* @implements Pickable
|
|
16217
16217
|
*/
|
|
16218
|
-
class
|
|
16218
|
+
class DataTextureSceneModelMesh {
|
|
16219
16219
|
|
|
16220
16220
|
constructor(model, id, color, opacity, layer = null, portionId = 0) {
|
|
16221
16221
|
|
|
@@ -16231,9 +16231,9 @@ class VBOSceneModelMesh$1 {
|
|
|
16231
16231
|
this.model = model;
|
|
16232
16232
|
|
|
16233
16233
|
/**
|
|
16234
|
-
* The
|
|
16234
|
+
* The DataTextureSceneModelNode that contains this PerformanceModelMesh.
|
|
16235
16235
|
*
|
|
16236
|
-
* A PerformanceModelMesh always belongs to exactly one
|
|
16236
|
+
* A PerformanceModelMesh always belongs to exactly one DataTextureSceneModelNode.
|
|
16237
16237
|
*
|
|
16238
16238
|
* @property object
|
|
16239
16239
|
* @type {VBOSceneModelNode}
|
|
@@ -16242,9 +16242,9 @@ class VBOSceneModelMesh$1 {
|
|
|
16242
16242
|
this.object = null;
|
|
16243
16243
|
|
|
16244
16244
|
/**
|
|
16245
|
-
* The
|
|
16245
|
+
* The DataTextureSceneModelNode that contains this PerformanceModelMesh.
|
|
16246
16246
|
*
|
|
16247
|
-
* A PerformanceModelMesh always belongs to exactly one
|
|
16247
|
+
* A PerformanceModelMesh always belongs to exactly one DataTextureSceneModelNode.
|
|
16248
16248
|
*
|
|
16249
16249
|
* @property object
|
|
16250
16250
|
* @type {VBOSceneModelNode}
|
|
@@ -16292,7 +16292,7 @@ class VBOSceneModelMesh$1 {
|
|
|
16292
16292
|
this.numTriangles = 0;
|
|
16293
16293
|
|
|
16294
16294
|
/**
|
|
16295
|
-
* 3D origin of the
|
|
16295
|
+
* 3D origin of the DataTextureSceneModelMesh's vertex positions, if they are in relative-to-center (RTC) coordinates.
|
|
16296
16296
|
*
|
|
16297
16297
|
* When this is defined, then the positions are RTC, which means that they are relative to this position.
|
|
16298
16298
|
*
|
|
@@ -16510,7 +16510,7 @@ const tempIntRGB = new Uint16Array([0, 0, 0]);
|
|
|
16510
16510
|
/**
|
|
16511
16511
|
* @private
|
|
16512
16512
|
*/
|
|
16513
|
-
class
|
|
16513
|
+
class DataTextureSceneModelNode {
|
|
16514
16514
|
|
|
16515
16515
|
/**
|
|
16516
16516
|
* @private
|
|
@@ -16520,7 +16520,7 @@ class VBOSceneModelNode {
|
|
|
16520
16520
|
this._isObject = isObject;
|
|
16521
16521
|
|
|
16522
16522
|
/**
|
|
16523
|
-
* The {@link Scene} that contains this
|
|
16523
|
+
* The {@link Scene} that contains this DataTextureSceneModelNode.
|
|
16524
16524
|
*
|
|
16525
16525
|
* @property scene
|
|
16526
16526
|
* @type {Scene}
|
|
@@ -16529,7 +16529,7 @@ class VBOSceneModelNode {
|
|
|
16529
16529
|
this.scene = model.scene;
|
|
16530
16530
|
|
|
16531
16531
|
/**
|
|
16532
|
-
* The VBOSceneModel that contains this
|
|
16532
|
+
* The VBOSceneModel that contains this DataTextureSceneModelNode.
|
|
16533
16533
|
* @property model
|
|
16534
16534
|
* @type {VBOSceneModel}
|
|
16535
16535
|
* @final
|
|
@@ -16537,7 +16537,7 @@ class VBOSceneModelNode {
|
|
|
16537
16537
|
this.model = model;
|
|
16538
16538
|
|
|
16539
16539
|
/**
|
|
16540
|
-
* The PerformanceModelMesh instances contained by this
|
|
16540
|
+
* The PerformanceModelMesh instances contained by this DataTextureSceneModelNode
|
|
16541
16541
|
* @property meshes
|
|
16542
16542
|
* @type {{Array of PerformanceModelMesh}}
|
|
16543
16543
|
* @final
|
|
@@ -16553,7 +16553,7 @@ class VBOSceneModelNode {
|
|
|
16553
16553
|
}
|
|
16554
16554
|
|
|
16555
16555
|
/**
|
|
16556
|
-
* ID of this
|
|
16556
|
+
* ID of this DataTextureSceneModelNode, unique within the {@link Scene}.
|
|
16557
16557
|
* @property id
|
|
16558
16558
|
* @type {String|Number}
|
|
16559
16559
|
* @final
|
|
@@ -16591,7 +16591,7 @@ class VBOSceneModelNode {
|
|
|
16591
16591
|
//------------------------------------------------------------------------------------------------------------------
|
|
16592
16592
|
|
|
16593
16593
|
/**
|
|
16594
|
-
* Returns true to indicate that
|
|
16594
|
+
* Returns true to indicate that DataTextureSceneModelNode is an {@link Entity}.
|
|
16595
16595
|
* @type {Boolean}
|
|
16596
16596
|
*/
|
|
16597
16597
|
get isEntity() {
|
|
@@ -16599,7 +16599,7 @@ class VBOSceneModelNode {
|
|
|
16599
16599
|
}
|
|
16600
16600
|
|
|
16601
16601
|
/**
|
|
16602
|
-
* Always returns ````false```` because a
|
|
16602
|
+
* Always returns ````false```` because a DataTextureSceneModelNode can never represent a model.
|
|
16603
16603
|
*
|
|
16604
16604
|
* @type {Boolean}
|
|
16605
16605
|
*/
|
|
@@ -16608,9 +16608,9 @@ class VBOSceneModelNode {
|
|
|
16608
16608
|
}
|
|
16609
16609
|
|
|
16610
16610
|
/**
|
|
16611
|
-
* Returns ````true```` if this
|
|
16611
|
+
* Returns ````true```` if this DataTextureSceneModelNode represents an object.
|
|
16612
16612
|
*
|
|
16613
|
-
* When ````true```` the
|
|
16613
|
+
* When ````true```` the DataTextureSceneModelNode will be registered by {@link DataTextureSceneModelNode#id} in
|
|
16614
16614
|
* {@link Scene#objects} and may also have a {@link MetaObject} with matching {@link MetaObject#id}.
|
|
16615
16615
|
*
|
|
16616
16616
|
* @type {Boolean}
|
|
@@ -16620,7 +16620,7 @@ class VBOSceneModelNode {
|
|
|
16620
16620
|
}
|
|
16621
16621
|
|
|
16622
16622
|
/**
|
|
16623
|
-
* World-space 3D axis-aligned bounding box (AABB) of this
|
|
16623
|
+
* World-space 3D axis-aligned bounding box (AABB) of this DataTextureSceneModelNode.
|
|
16624
16624
|
*
|
|
16625
16625
|
* Represented by a six-element Float64Array containing the min/max extents of the
|
|
16626
16626
|
* axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
|
|
@@ -16632,7 +16632,7 @@ class VBOSceneModelNode {
|
|
|
16632
16632
|
}
|
|
16633
16633
|
|
|
16634
16634
|
/**
|
|
16635
|
-
* The approximate number of triangles in this
|
|
16635
|
+
* The approximate number of triangles in this DataTextureSceneModelNode.
|
|
16636
16636
|
*
|
|
16637
16637
|
* @type {Number}
|
|
16638
16638
|
*/
|
|
@@ -16641,12 +16641,12 @@ class VBOSceneModelNode {
|
|
|
16641
16641
|
}
|
|
16642
16642
|
|
|
16643
16643
|
/**
|
|
16644
|
-
* Gets if this
|
|
16644
|
+
* Gets if this DataTextureSceneModelNode is visible.
|
|
16645
16645
|
*
|
|
16646
|
-
* Only rendered when {@link
|
|
16646
|
+
* Only rendered when {@link DataTextureSceneModelNode#visible} is ````true```` and {@link DataTextureSceneModelNode#culled} is ````false````.
|
|
16647
16647
|
*
|
|
16648
|
-
* When both {@link
|
|
16649
|
-
* registered by {@link
|
|
16648
|
+
* When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#visible} are ````true```` the DataTextureSceneModelNode will be
|
|
16649
|
+
* registered by {@link DataTextureSceneModelNode#id} in {@link Scene#visibleObjects}.
|
|
16650
16650
|
*
|
|
16651
16651
|
* @type {Boolean}
|
|
16652
16652
|
*/
|
|
@@ -16655,12 +16655,12 @@ class VBOSceneModelNode {
|
|
|
16655
16655
|
}
|
|
16656
16656
|
|
|
16657
16657
|
/**
|
|
16658
|
-
* Sets if this
|
|
16658
|
+
* Sets if this DataTextureSceneModelNode is visible.
|
|
16659
16659
|
*
|
|
16660
|
-
* Only rendered when {@link
|
|
16660
|
+
* Only rendered when {@link DataTextureSceneModelNode#visible} is ````true```` and {@link DataTextureSceneModelNode#culled} is ````false````.
|
|
16661
16661
|
*
|
|
16662
|
-
* When both {@link
|
|
16663
|
-
* registered by {@link
|
|
16662
|
+
* When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#visible} are ````true```` the DataTextureSceneModelNode will be
|
|
16663
|
+
* registered by {@link DataTextureSceneModelNode#id} in {@link Scene#visibleObjects}.
|
|
16664
16664
|
*
|
|
16665
16665
|
* @type {Boolean}
|
|
16666
16666
|
*/
|
|
@@ -16683,10 +16683,10 @@ class VBOSceneModelNode {
|
|
|
16683
16683
|
}
|
|
16684
16684
|
|
|
16685
16685
|
/**
|
|
16686
|
-
* Gets if this
|
|
16686
|
+
* Gets if this DataTextureSceneModelNode is highlighted.
|
|
16687
16687
|
*
|
|
16688
|
-
* When both {@link
|
|
16689
|
-
* registered by {@link
|
|
16688
|
+
* When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#highlighted} are ````true```` the DataTextureSceneModelNode will be
|
|
16689
|
+
* registered by {@link DataTextureSceneModelNode#id} in {@link Scene#highlightedObjects}.
|
|
16690
16690
|
*
|
|
16691
16691
|
* @type {Boolean}
|
|
16692
16692
|
*/
|
|
@@ -16695,10 +16695,10 @@ class VBOSceneModelNode {
|
|
|
16695
16695
|
}
|
|
16696
16696
|
|
|
16697
16697
|
/**
|
|
16698
|
-
* Sets if this
|
|
16698
|
+
* Sets if this DataTextureSceneModelNode is highlighted.
|
|
16699
16699
|
*
|
|
16700
|
-
* When both {@link
|
|
16701
|
-
* registered by {@link
|
|
16700
|
+
* When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#highlighted} are ````true```` the DataTextureSceneModelNode will be
|
|
16701
|
+
* registered by {@link DataTextureSceneModelNode#id} in {@link Scene#highlightedObjects}.
|
|
16702
16702
|
*
|
|
16703
16703
|
* @type {Boolean}
|
|
16704
16704
|
*/
|
|
@@ -16721,10 +16721,10 @@ class VBOSceneModelNode {
|
|
|
16721
16721
|
}
|
|
16722
16722
|
|
|
16723
16723
|
/**
|
|
16724
|
-
* Gets if this
|
|
16724
|
+
* Gets if this DataTextureSceneModelNode is xrayed.
|
|
16725
16725
|
*
|
|
16726
|
-
* When both {@link
|
|
16727
|
-
* registered by {@link
|
|
16726
|
+
* When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#xrayed} are ````true```` the DataTextureSceneModelNode will be
|
|
16727
|
+
* registered by {@link DataTextureSceneModelNode#id} in {@link Scene#xrayedObjects}.
|
|
16728
16728
|
*
|
|
16729
16729
|
* @type {Boolean}
|
|
16730
16730
|
*/
|
|
@@ -16733,10 +16733,10 @@ class VBOSceneModelNode {
|
|
|
16733
16733
|
}
|
|
16734
16734
|
|
|
16735
16735
|
/**
|
|
16736
|
-
* Sets if this
|
|
16736
|
+
* Sets if this DataTextureSceneModelNode is xrayed.
|
|
16737
16737
|
*
|
|
16738
|
-
* When both {@link
|
|
16739
|
-
* registered by {@link
|
|
16738
|
+
* When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#xrayed} are ````true```` the DataTextureSceneModelNode will be
|
|
16739
|
+
* registered by {@link DataTextureSceneModelNode#id} in {@link Scene#xrayedObjects}.
|
|
16740
16740
|
*
|
|
16741
16741
|
* @type {Boolean}
|
|
16742
16742
|
*/
|
|
@@ -16759,10 +16759,10 @@ class VBOSceneModelNode {
|
|
|
16759
16759
|
}
|
|
16760
16760
|
|
|
16761
16761
|
/**
|
|
16762
|
-
* Sets if this
|
|
16762
|
+
* Sets if this DataTextureSceneModelNode is selected.
|
|
16763
16763
|
*
|
|
16764
|
-
* When both {@link
|
|
16765
|
-
* registered by {@link
|
|
16764
|
+
* When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#selected} are ````true```` the DataTextureSceneModelNode will be
|
|
16765
|
+
* registered by {@link DataTextureSceneModelNode#id} in {@link Scene#selectedObjects}.
|
|
16766
16766
|
*
|
|
16767
16767
|
* @type {Boolean}
|
|
16768
16768
|
*/
|
|
@@ -16771,10 +16771,10 @@ class VBOSceneModelNode {
|
|
|
16771
16771
|
}
|
|
16772
16772
|
|
|
16773
16773
|
/**
|
|
16774
|
-
* Gets if this
|
|
16774
|
+
* Gets if this DataTextureSceneModelNode is selected.
|
|
16775
16775
|
*
|
|
16776
|
-
* When both {@link
|
|
16777
|
-
* registered by {@link
|
|
16776
|
+
* When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#selected} are ````true```` the DataTextureSceneModelNode will be
|
|
16777
|
+
* registered by {@link DataTextureSceneModelNode#id} in {@link Scene#selectedObjects}.
|
|
16778
16778
|
*
|
|
16779
16779
|
* @type {Boolean}
|
|
16780
16780
|
*/
|
|
@@ -16797,7 +16797,7 @@ class VBOSceneModelNode {
|
|
|
16797
16797
|
}
|
|
16798
16798
|
|
|
16799
16799
|
/**
|
|
16800
|
-
* Gets if this
|
|
16800
|
+
* Gets if this DataTextureSceneModelNode's edges are enhanced.
|
|
16801
16801
|
*
|
|
16802
16802
|
* @type {Boolean}
|
|
16803
16803
|
*/
|
|
@@ -16806,7 +16806,7 @@ class VBOSceneModelNode {
|
|
|
16806
16806
|
}
|
|
16807
16807
|
|
|
16808
16808
|
/**
|
|
16809
|
-
* Sets if this
|
|
16809
|
+
* Sets if this DataTextureSceneModelNode's edges are enhanced.
|
|
16810
16810
|
*
|
|
16811
16811
|
* @type {Boolean}
|
|
16812
16812
|
*/
|
|
@@ -16844,9 +16844,9 @@ class VBOSceneModelNode {
|
|
|
16844
16844
|
}
|
|
16845
16845
|
|
|
16846
16846
|
/**
|
|
16847
|
-
* Gets if this
|
|
16847
|
+
* Gets if this DataTextureSceneModelNode is culled.
|
|
16848
16848
|
*
|
|
16849
|
-
* Only rendered when {@link
|
|
16849
|
+
* Only rendered when {@link DataTextureSceneModelNode#visible} is ````true```` and {@link DataTextureSceneModelNode#culled} is ````false````.
|
|
16850
16850
|
*
|
|
16851
16851
|
* @type {Boolean}
|
|
16852
16852
|
*/
|
|
@@ -16856,9 +16856,9 @@ class VBOSceneModelNode {
|
|
|
16856
16856
|
}
|
|
16857
16857
|
|
|
16858
16858
|
/**
|
|
16859
|
-
* Sets if this
|
|
16859
|
+
* Sets if this DataTextureSceneModelNode is culled.
|
|
16860
16860
|
*
|
|
16861
|
-
* Only rendered when {@link
|
|
16861
|
+
* Only rendered when {@link DataTextureSceneModelNode#visible} is ````true```` and {@link DataTextureSceneModelNode#culled} is ````false````.
|
|
16862
16862
|
*
|
|
16863
16863
|
* @type {Boolean}
|
|
16864
16864
|
*/
|
|
@@ -16886,7 +16886,7 @@ class VBOSceneModelNode {
|
|
|
16886
16886
|
}
|
|
16887
16887
|
|
|
16888
16888
|
/**
|
|
16889
|
-
* Gets if this
|
|
16889
|
+
* Gets if this DataTextureSceneModelNode is clippable.
|
|
16890
16890
|
*
|
|
16891
16891
|
* Clipping is done by the {@link SectionPlane}s in {@link Scene#sectionPlanes}.
|
|
16892
16892
|
*
|
|
@@ -16897,7 +16897,7 @@ class VBOSceneModelNode {
|
|
|
16897
16897
|
}
|
|
16898
16898
|
|
|
16899
16899
|
/**
|
|
16900
|
-
* Sets if this
|
|
16900
|
+
* Sets if this DataTextureSceneModelNode is clippable.
|
|
16901
16901
|
*
|
|
16902
16902
|
* Clipping is done by the {@link SectionPlane}s in {@link Scene#sectionPlanes}.
|
|
16903
16903
|
*
|
|
@@ -16919,7 +16919,7 @@ class VBOSceneModelNode {
|
|
|
16919
16919
|
}
|
|
16920
16920
|
|
|
16921
16921
|
/**
|
|
16922
|
-
* Gets if this
|
|
16922
|
+
* Gets if this DataTextureSceneModelNode is included in boundary calculations.
|
|
16923
16923
|
*
|
|
16924
16924
|
* @type {Boolean}
|
|
16925
16925
|
*/
|
|
@@ -16928,7 +16928,7 @@ class VBOSceneModelNode {
|
|
|
16928
16928
|
}
|
|
16929
16929
|
|
|
16930
16930
|
/**
|
|
16931
|
-
* Sets if this
|
|
16931
|
+
* Sets if this DataTextureSceneModelNode is included in boundary calculations.
|
|
16932
16932
|
*
|
|
16933
16933
|
* @type {Boolean}
|
|
16934
16934
|
*/
|
|
@@ -16947,7 +16947,7 @@ class VBOSceneModelNode {
|
|
|
16947
16947
|
}
|
|
16948
16948
|
|
|
16949
16949
|
/**
|
|
16950
|
-
* Gets if this
|
|
16950
|
+
* Gets if this DataTextureSceneModelNode is pickable.
|
|
16951
16951
|
*
|
|
16952
16952
|
* Picking is done via calls to {@link Scene#pick}.
|
|
16953
16953
|
*
|
|
@@ -16958,7 +16958,7 @@ class VBOSceneModelNode {
|
|
|
16958
16958
|
}
|
|
16959
16959
|
|
|
16960
16960
|
/**
|
|
16961
|
-
* Sets if this
|
|
16961
|
+
* Sets if this DataTextureSceneModelNode is pickable.
|
|
16962
16962
|
*
|
|
16963
16963
|
* Picking is done via calls to {@link Scene#pick}.
|
|
16964
16964
|
*
|
|
@@ -16979,7 +16979,7 @@ class VBOSceneModelNode {
|
|
|
16979
16979
|
}
|
|
16980
16980
|
|
|
16981
16981
|
/**
|
|
16982
|
-
* Gets the
|
|
16982
|
+
* Gets the DataTextureSceneModelNode's RGB colorize color.
|
|
16983
16983
|
*
|
|
16984
16984
|
* Each element of the color is in range ````[0..1]````.
|
|
16985
16985
|
*
|
|
@@ -16997,7 +16997,7 @@ class VBOSceneModelNode {
|
|
|
16997
16997
|
}
|
|
16998
16998
|
|
|
16999
16999
|
/**
|
|
17000
|
-
* Sets the
|
|
17000
|
+
* Sets the DataTextureSceneModelNode's RGB colorize color.
|
|
17001
17001
|
*
|
|
17002
17002
|
* Each element of the color is in range ````[0..1]````.
|
|
17003
17003
|
*
|
|
@@ -17025,7 +17025,7 @@ class VBOSceneModelNode {
|
|
|
17025
17025
|
}
|
|
17026
17026
|
|
|
17027
17027
|
/**
|
|
17028
|
-
* Gets the
|
|
17028
|
+
* Gets the DataTextureSceneModelNode's opacity factor.
|
|
17029
17029
|
*
|
|
17030
17030
|
* This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
|
|
17031
17031
|
*
|
|
@@ -17040,7 +17040,7 @@ class VBOSceneModelNode {
|
|
|
17040
17040
|
}
|
|
17041
17041
|
|
|
17042
17042
|
/**
|
|
17043
|
-
* Sets the
|
|
17043
|
+
* Sets the DataTextureSceneModelNode's opacity factor, multiplies by the DataTextureSceneModelNode's rendered fragment alphas.
|
|
17044
17044
|
*
|
|
17045
17045
|
* This is a factor in range ````[0..1]````.
|
|
17046
17046
|
*
|
|
@@ -17080,7 +17080,7 @@ class VBOSceneModelNode {
|
|
|
17080
17080
|
}
|
|
17081
17081
|
|
|
17082
17082
|
/**
|
|
17083
|
-
* Gets the
|
|
17083
|
+
* Gets the DataTextureSceneModelNode's 3D World-space offset.
|
|
17084
17084
|
*
|
|
17085
17085
|
* Default value is ````[0,0,0]````.
|
|
17086
17086
|
*
|
|
@@ -17091,9 +17091,9 @@ class VBOSceneModelNode {
|
|
|
17091
17091
|
}
|
|
17092
17092
|
|
|
17093
17093
|
/**
|
|
17094
|
-
* Sets the
|
|
17094
|
+
* Sets the DataTextureSceneModelNode's 3D World-space offset.
|
|
17095
17095
|
*
|
|
17096
|
-
* The offset dynamically translates the
|
|
17096
|
+
* The offset dynamically translates the DataTextureSceneModelNode in World-space.
|
|
17097
17097
|
*
|
|
17098
17098
|
* Default value is ````[0, 0, 0]````.
|
|
17099
17099
|
*
|
|
@@ -17127,7 +17127,7 @@ class VBOSceneModelNode {
|
|
|
17127
17127
|
}
|
|
17128
17128
|
|
|
17129
17129
|
/**
|
|
17130
|
-
* Gets if this
|
|
17130
|
+
* Gets if this DataTextureSceneModelNode casts shadows.
|
|
17131
17131
|
*
|
|
17132
17132
|
* @type {Boolean}
|
|
17133
17133
|
*/
|
|
@@ -17136,7 +17136,7 @@ class VBOSceneModelNode {
|
|
|
17136
17136
|
}
|
|
17137
17137
|
|
|
17138
17138
|
/**
|
|
17139
|
-
* Sets if to this
|
|
17139
|
+
* Sets if to this DataTextureSceneModelNode casts shadows.
|
|
17140
17140
|
*
|
|
17141
17141
|
* @type {Boolean}
|
|
17142
17142
|
*/
|
|
@@ -17145,7 +17145,7 @@ class VBOSceneModelNode {
|
|
|
17145
17145
|
}
|
|
17146
17146
|
|
|
17147
17147
|
/**
|
|
17148
|
-
* Whether or not this
|
|
17148
|
+
* Whether or not this DataTextureSceneModelNode can have shadows cast upon it
|
|
17149
17149
|
*
|
|
17150
17150
|
* @type {Boolean}
|
|
17151
17151
|
*/
|
|
@@ -17154,7 +17154,7 @@ class VBOSceneModelNode {
|
|
|
17154
17154
|
}
|
|
17155
17155
|
|
|
17156
17156
|
/**
|
|
17157
|
-
* Whether or not this
|
|
17157
|
+
* Whether or not this DataTextureSceneModelNode can have shadows cast upon it
|
|
17158
17158
|
*
|
|
17159
17159
|
* @type {Boolean}
|
|
17160
17160
|
*/
|
|
@@ -17163,7 +17163,7 @@ class VBOSceneModelNode {
|
|
|
17163
17163
|
}
|
|
17164
17164
|
|
|
17165
17165
|
/**
|
|
17166
|
-
* Gets if Scalable Ambient Obscurance (SAO) will apply to this
|
|
17166
|
+
* Gets if Scalable Ambient Obscurance (SAO) will apply to this DataTextureSceneModelNode.
|
|
17167
17167
|
*
|
|
17168
17168
|
* SAO is configured by the Scene's {@link SAO} component.
|
|
17169
17169
|
*
|
|
@@ -17237,68 +17237,6 @@ class VBOSceneModelNode {
|
|
|
17237
17237
|
|
|
17238
17238
|
}
|
|
17239
17239
|
|
|
17240
|
-
/**
|
|
17241
|
-
* Provides scratch memory for methods like TrianglesBatchingLayer setFlags() and setColors(),
|
|
17242
|
-
* so they don't need to allocate temporary arrays that need garbage collection.
|
|
17243
|
-
*
|
|
17244
|
-
* @private
|
|
17245
|
-
*/
|
|
17246
|
-
class ScratchMemory$1 {
|
|
17247
|
-
|
|
17248
|
-
constructor() {
|
|
17249
|
-
this._uint8Arrays = {};
|
|
17250
|
-
this._float32Arrays = {};
|
|
17251
|
-
}
|
|
17252
|
-
|
|
17253
|
-
_clear() {
|
|
17254
|
-
this._uint8Arrays = {};
|
|
17255
|
-
this._float32Arrays = {};
|
|
17256
|
-
}
|
|
17257
|
-
|
|
17258
|
-
getUInt8Array(len) {
|
|
17259
|
-
let uint8Array = this._uint8Arrays[len];
|
|
17260
|
-
if (!uint8Array) {
|
|
17261
|
-
uint8Array = new Uint8Array(len);
|
|
17262
|
-
this._uint8Arrays[len] = uint8Array;
|
|
17263
|
-
}
|
|
17264
|
-
return uint8Array;
|
|
17265
|
-
}
|
|
17266
|
-
|
|
17267
|
-
getFloat32Array(len) {
|
|
17268
|
-
let float32Array = this._float32Arrays[len];
|
|
17269
|
-
if (!float32Array) {
|
|
17270
|
-
float32Array = new Float32Array(len);
|
|
17271
|
-
this._float32Arrays[len] = float32Array;
|
|
17272
|
-
}
|
|
17273
|
-
return float32Array;
|
|
17274
|
-
}
|
|
17275
|
-
}
|
|
17276
|
-
|
|
17277
|
-
const batchingLayerScratchMemory$1 = new ScratchMemory$1();
|
|
17278
|
-
|
|
17279
|
-
let countUsers$1 = 0;
|
|
17280
|
-
|
|
17281
|
-
/**
|
|
17282
|
-
* @private
|
|
17283
|
-
*/
|
|
17284
|
-
function getScratchMemory$1() {
|
|
17285
|
-
countUsers$1++;
|
|
17286
|
-
return batchingLayerScratchMemory$1;
|
|
17287
|
-
}
|
|
17288
|
-
|
|
17289
|
-
/**
|
|
17290
|
-
* @private
|
|
17291
|
-
*/
|
|
17292
|
-
function putScratchMemory$1() {
|
|
17293
|
-
if (countUsers$1 === 0) {
|
|
17294
|
-
return;
|
|
17295
|
-
}
|
|
17296
|
-
countUsers$1--;
|
|
17297
|
-
if (countUsers$1 === 0) {
|
|
17298
|
-
batchingLayerScratchMemory$1._clear();
|
|
17299
|
-
}
|
|
17300
|
-
}
|
|
17301
|
-
|
|
17302
17240
|
/**
|
|
17303
17241
|
* @private
|
|
17304
17242
|
*/
|
|
@@ -19995,15 +19933,6 @@ class TrianglesDataTextureColorRenderer {
|
|
|
19995
19933
|
|
|
19996
19934
|
src.push("void main(void) {");
|
|
19997
19935
|
|
|
19998
|
-
// camera matrices
|
|
19999
|
-
src.push ("mat4 viewMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 0), 0));");
|
|
20000
|
-
src.push ("mat4 viewNormalMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 1), 0));");
|
|
20001
|
-
src.push ("mat4 projMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 2), 0));");
|
|
20002
|
-
|
|
20003
|
-
// model matrices
|
|
20004
|
-
src.push ("mat4 worldMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 0), 0), texelFetch (uTextureModelMatrices, ivec2(1, 0), 0), texelFetch (uTextureModelMatrices, ivec2(2, 0), 0), texelFetch (uTextureModelMatrices, ivec2(3, 0), 0));");
|
|
20005
|
-
src.push ("mat4 worldNormalMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 1), 0), texelFetch (uTextureModelMatrices, ivec2(1, 1), 0), texelFetch (uTextureModelMatrices, ivec2(2, 1), 0), texelFetch (uTextureModelMatrices, ivec2(3, 1), 0));");
|
|
20006
|
-
|
|
20007
19936
|
// constants
|
|
20008
19937
|
src.push("int polygonIndex = gl_VertexID / 3;");
|
|
20009
19938
|
|
|
@@ -20026,6 +19955,15 @@ class TrianglesDataTextureColorRenderer {
|
|
|
20026
19955
|
src.push(" return;"); // Cull vertex
|
|
20027
19956
|
src.push("} else {");
|
|
20028
19957
|
|
|
19958
|
+
// camera matrices
|
|
19959
|
+
src.push ("mat4 viewMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 0), 0));");
|
|
19960
|
+
src.push ("mat4 viewNormalMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 1), 0));");
|
|
19961
|
+
src.push ("mat4 projMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 2), 0));");
|
|
19962
|
+
|
|
19963
|
+
// model matrices
|
|
19964
|
+
src.push ("mat4 worldMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 0), 0), texelFetch (uTextureModelMatrices, ivec2(1, 0), 0), texelFetch (uTextureModelMatrices, ivec2(2, 0), 0), texelFetch (uTextureModelMatrices, ivec2(3, 0), 0));");
|
|
19965
|
+
src.push ("mat4 worldNormalMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 1), 0), texelFetch (uTextureModelMatrices, ivec2(1, 1), 0), texelFetch (uTextureModelMatrices, ivec2(2, 1), 0), texelFetch (uTextureModelMatrices, ivec2(3, 1), 0));");
|
|
19966
|
+
|
|
20029
19967
|
// get vertex base
|
|
20030
19968
|
src.push("ivec4 packedVertexBase = ivec4(texelFetch (uTexturePerObjectIdColorsAndFlags, ivec2(objectIndexCoords.x*8+4, objectIndexCoords.y), 0));"); // chipmunk
|
|
20031
19969
|
|
|
@@ -23351,15 +23289,6 @@ class TrianglesDataTextureDepthRenderer {
|
|
|
23351
23289
|
|
|
23352
23290
|
src.push("void main(void) {");
|
|
23353
23291
|
|
|
23354
|
-
// camera matrices
|
|
23355
|
-
src.push ("mat4 viewMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 0), 0));");
|
|
23356
|
-
src.push ("mat4 viewNormalMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 1), 0));");
|
|
23357
|
-
src.push ("mat4 projMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 2), 0));");
|
|
23358
|
-
|
|
23359
|
-
// model matrices
|
|
23360
|
-
src.push ("mat4 worldMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 0), 0), texelFetch (uTextureModelMatrices, ivec2(1, 0), 0), texelFetch (uTextureModelMatrices, ivec2(2, 0), 0), texelFetch (uTextureModelMatrices, ivec2(3, 0), 0));");
|
|
23361
|
-
src.push ("mat4 worldNormalMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 1), 0), texelFetch (uTextureModelMatrices, ivec2(1, 1), 0), texelFetch (uTextureModelMatrices, ivec2(2, 1), 0), texelFetch (uTextureModelMatrices, ivec2(3, 1), 0));");
|
|
23362
|
-
|
|
23363
23292
|
// constants
|
|
23364
23293
|
src.push("int polygonIndex = gl_VertexID / 3;");
|
|
23365
23294
|
|
|
@@ -23377,11 +23306,19 @@ class TrianglesDataTextureDepthRenderer {
|
|
|
23377
23306
|
// flags.x = NOT_RENDERED | COLOR_OPAQUE | COLOR_TRANSPARENT
|
|
23378
23307
|
// renderPass = COLOR_OPAQUE
|
|
23379
23308
|
|
|
23380
|
-
|
|
23381
|
-
|
|
23382
|
-
|
|
23383
|
-
|
|
23384
|
-
|
|
23309
|
+
src.push(`if (int(flags.x) != renderPass) {`);
|
|
23310
|
+
src.push(" gl_Position = vec4(3.0, 3.0, 3.0, 1.0);"); // Cull vertex
|
|
23311
|
+
src.push(" return;"); // Cull vertex
|
|
23312
|
+
src.push("} else {");
|
|
23313
|
+
|
|
23314
|
+
// camera matrices
|
|
23315
|
+
src.push ("mat4 viewMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 0), 0));");
|
|
23316
|
+
src.push ("mat4 viewNormalMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 1), 0));");
|
|
23317
|
+
src.push ("mat4 projMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 2), 0));");
|
|
23318
|
+
|
|
23319
|
+
// model matrices
|
|
23320
|
+
src.push ("mat4 worldMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 0), 0), texelFetch (uTextureModelMatrices, ivec2(1, 0), 0), texelFetch (uTextureModelMatrices, ivec2(2, 0), 0), texelFetch (uTextureModelMatrices, ivec2(3, 0), 0));");
|
|
23321
|
+
src.push ("mat4 worldNormalMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 1), 0), texelFetch (uTextureModelMatrices, ivec2(1, 1), 0), texelFetch (uTextureModelMatrices, ivec2(2, 1), 0), texelFetch (uTextureModelMatrices, ivec2(3, 1), 0));");
|
|
23385
23322
|
|
|
23386
23323
|
// get vertex base
|
|
23387
23324
|
src.push("ivec4 packedVertexBase = ivec4(texelFetch (uTexturePerObjectIdColorsAndFlags, ivec2(objectIndexCoords.x*8+4, objectIndexCoords.y), 0));"); // chipmunk
|
|
@@ -27710,7 +27647,6 @@ class TrianglesDataTextureLayer {
|
|
|
27710
27647
|
* @param cfg.layerIndex
|
|
27711
27648
|
* @param cfg.positionsDecodeMatrix
|
|
27712
27649
|
* @param cfg.origin
|
|
27713
|
-
* @param cfg.scratchMemory
|
|
27714
27650
|
*/
|
|
27715
27651
|
constructor(model, cfg) {
|
|
27716
27652
|
this._layerNumber = _numberOfLayers++;
|
|
@@ -27731,7 +27667,6 @@ class TrianglesDataTextureLayer {
|
|
|
27731
27667
|
this._dataTextureRenderers = getDataTextureRenderers(model.scene);
|
|
27732
27668
|
this.model = model;
|
|
27733
27669
|
this._buffer = new TrianglesDataTextureBuffer();
|
|
27734
|
-
this._scratchMemory = cfg.scratchMemory;
|
|
27735
27670
|
|
|
27736
27671
|
/**
|
|
27737
27672
|
* @type {DataTextureState}
|
|
@@ -29773,7 +29708,7 @@ function attachFPSTracker (scene, cullingManager) {
|
|
|
29773
29708
|
* - key: the number of triangles allowed for the objects in the bucket.
|
|
29774
29709
|
* - value: all PerformanceNodes that have the number of triangles or more.
|
|
29775
29710
|
*
|
|
29776
|
-
* @type {Map<number, Array<
|
|
29711
|
+
* @type {Map<number, Array<DataTextureSceneModelNode>>}
|
|
29777
29712
|
*/
|
|
29778
29713
|
this.nodesInLOD = {};
|
|
29779
29714
|
|
|
@@ -31707,7 +31642,7 @@ const VISIBILITY_CHECK_ENVOLVES_V = (1 << 14);
|
|
|
31707
31642
|
});
|
|
31708
31643
|
|
|
31709
31644
|
/**
|
|
31710
|
-
* @type {Array<
|
|
31645
|
+
* @type {Array<DataTextureSceneModelNode>}
|
|
31711
31646
|
* @private
|
|
31712
31647
|
*/
|
|
31713
31648
|
this._internalNodesList = internalNodesList;
|
|
@@ -32229,7 +32164,7 @@ class DataTextureSceneModel extends Component {
|
|
|
32229
32164
|
this._layerList = [];
|
|
32230
32165
|
|
|
32231
32166
|
/**
|
|
32232
|
-
* @type {Array<
|
|
32167
|
+
* @type {Array<DataTextureSceneModelNode>}
|
|
32233
32168
|
*/
|
|
32234
32169
|
this._nodeList = [];
|
|
32235
32170
|
|
|
@@ -32242,15 +32177,13 @@ class DataTextureSceneModel extends Component {
|
|
|
32242
32177
|
|
|
32243
32178
|
this._preparedInstancingGeometries = {};
|
|
32244
32179
|
|
|
32245
|
-
this._scratchMemory = getScratchMemory$1();
|
|
32246
|
-
|
|
32247
32180
|
/**
|
|
32248
|
-
* @type {Map<string,
|
|
32181
|
+
* @type {Map<string, DataTextureSceneModelMesh>}
|
|
32249
32182
|
*/
|
|
32250
32183
|
this._meshes = {};
|
|
32251
32184
|
|
|
32252
32185
|
/**
|
|
32253
|
-
* @type {Map<string,
|
|
32186
|
+
* @type {Map<string, DataTextureSceneModelNode>}
|
|
32254
32187
|
*/
|
|
32255
32188
|
this._nodes = {};
|
|
32256
32189
|
|
|
@@ -33288,7 +33221,6 @@ class DataTextureSceneModel extends Component {
|
|
|
33288
33221
|
{
|
|
33289
33222
|
layer = new TrianglesDataTextureLayer(this, {
|
|
33290
33223
|
layerIndex: 0, // This is set in #finalize()
|
|
33291
|
-
scratchMemory: this._scratchMemory,
|
|
33292
33224
|
|
|
33293
33225
|
// chipmunk
|
|
33294
33226
|
// positionsDecodeMatrix: cfg.positionsDecodeMatrix, // Can be undefined
|
|
@@ -33307,7 +33239,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33307
33239
|
const metallic = (cfg.metallic !== undefined && cfg.metallic !== null) ? Math.floor(cfg.metallic * 255) : 0;
|
|
33308
33240
|
const roughness = (cfg.roughness !== undefined && cfg.roughness !== null) ? Math.floor(cfg.roughness * 255) : 255;
|
|
33309
33241
|
|
|
33310
|
-
const mesh = new
|
|
33242
|
+
const mesh = new DataTextureSceneModelMesh(this, id, color, opacity);
|
|
33311
33243
|
|
|
33312
33244
|
const pickId = mesh.pickId;
|
|
33313
33245
|
|
|
@@ -33550,7 +33482,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33550
33482
|
}
|
|
33551
33483
|
}
|
|
33552
33484
|
|
|
33553
|
-
const node = new
|
|
33485
|
+
const node = new DataTextureSceneModelNode(this, cfg.isObject, id, meshes, flags, aabb); // Internally sets PerformanceModelMesh#parent to this PerformanceModelNode
|
|
33554
33486
|
this._nodeList.push(node);
|
|
33555
33487
|
this._nodes[id] = node;
|
|
33556
33488
|
this.numEntities++;
|
|
@@ -33963,7 +33895,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33963
33895
|
}
|
|
33964
33896
|
|
|
33965
33897
|
/**
|
|
33966
|
-
* Called by
|
|
33898
|
+
* Called by DataTextureSceneModelMesh.drawPickDepths()
|
|
33967
33899
|
* @private
|
|
33968
33900
|
*/
|
|
33969
33901
|
drawPickDepths(frameCtx) {
|
|
@@ -33978,7 +33910,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33978
33910
|
}
|
|
33979
33911
|
|
|
33980
33912
|
/**
|
|
33981
|
-
* Called by
|
|
33913
|
+
* Called by DataTextureSceneModelMesh.drawPickNormals()
|
|
33982
33914
|
* @private
|
|
33983
33915
|
*/
|
|
33984
33916
|
drawPickNormals(frameCtx) {
|
|
@@ -34011,7 +33943,6 @@ class DataTextureSceneModel extends Component {
|
|
|
34011
33943
|
if (this._isModel) {
|
|
34012
33944
|
this.scene._deregisterModel(this);
|
|
34013
33945
|
}
|
|
34014
|
-
putScratchMemory$1();
|
|
34015
33946
|
super.destroy();
|
|
34016
33947
|
}
|
|
34017
33948
|
}
|
|
@@ -63146,7 +63077,7 @@ class DistanceMeasurement extends Component {
|
|
|
63146
63077
|
}
|
|
63147
63078
|
|
|
63148
63079
|
/**
|
|
63149
|
-
* Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
|
|
63080
|
+
* Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events, or ignore mouse events altogether.
|
|
63150
63081
|
*
|
|
63151
63082
|
* @type {Boolean}
|
|
63152
63083
|
*/
|
|
@@ -97239,7 +97170,7 @@ ${cfg.uv && cfg.uv.length > 0 ? 1 : 0}-${cfg.uvCompressed && cfg.uvCompressed.le
|
|
|
97239
97170
|
math.expandAABB3(aabb, meshes[i].aabb);
|
|
97240
97171
|
}
|
|
97241
97172
|
}
|
|
97242
|
-
const node = new VBOSceneModelNode
|
|
97173
|
+
const node = new VBOSceneModelNode(this, cfg.isObject, id, meshes, flags, aabb); // Internally sets PerformanceModelMesh#parent to this PerformanceModelNode
|
|
97243
97174
|
this._nodeList.push(node);
|
|
97244
97175
|
this._nodes[id] = node;
|
|
97245
97176
|
this.numEntities++;
|