x_ite 9.4.2 → 9.4.4
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/README.md +6 -5
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +14 -14
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +18 -18
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +23 -23
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +23 -23
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +33 -31
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +17 -17
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +38 -38
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjection.js +15 -15
- package/dist/assets/components/TextureProjection.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +8 -8
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +209 -155
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +209 -155
- package/dist/x_ite.zip +0 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v9.4.
|
|
1
|
+
/* X_ITE v9.4.4 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,28 +39,28 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
54
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
54
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
55
55
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
57
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
57
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Rendering/TraverseType");
|
|
58
58
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
60
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
60
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Base/X3DConstants");
|
|
61
61
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
63
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
63
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Namespace");
|
|
64
64
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
65
65
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/MatchCriterion.js
|
|
66
66
|
/*******************************************************************************
|
|
@@ -249,7 +249,7 @@ const SortOrder_default_ = SortOrder;
|
|
|
249
249
|
Namespace_default().add ("SortOrder", "x_ite/Browser/Picking/SortOrder", SortOrder_default_);
|
|
250
250
|
/* harmony default export */ const Picking_SortOrder = (SortOrder_default_);
|
|
251
251
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
252
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
252
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Numbers/Matrix4");
|
|
253
253
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
254
254
|
;// CONCATENATED MODULE: ./src/standard/Math/Algorithms/QuickSort.js
|
|
255
255
|
/*******************************************************************************
|
|
@@ -363,7 +363,7 @@ const QuickSort_default_ = QuickSort;
|
|
|
363
363
|
Namespace_default().add ("QuickSort", "standard/Math/Algorithms/QuickSort", QuickSort_default_);
|
|
364
364
|
/* harmony default export */ const Algorithms_QuickSort = (QuickSort_default_);
|
|
365
365
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/ObjectCache\")"
|
|
366
|
-
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
366
|
+
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Utility/ObjectCache");
|
|
367
367
|
var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespaceObject);
|
|
368
368
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickSensorNode.js
|
|
369
369
|
/*******************************************************************************
|
|
@@ -812,13 +812,13 @@ const X3DPickSensorNode_default_ = X3DPickSensorNode;
|
|
|
812
812
|
Namespace_default().add ("X3DPickSensorNode", "x_ite/Components/Picking/X3DPickSensorNode", X3DPickSensorNode_default_);
|
|
813
813
|
/* harmony default export */ const Picking_X3DPickSensorNode = (X3DPickSensorNode_default_);
|
|
814
814
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
815
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
815
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Numbers/Vector3");
|
|
816
816
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
817
817
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
|
818
|
-
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
818
|
+
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Geometry/Box3");
|
|
819
819
|
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
|
820
820
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Line3\")"
|
|
821
|
-
const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
821
|
+
const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Geometry/Line3");
|
|
822
822
|
var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
|
|
823
823
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/LinePickSensor.js
|
|
824
824
|
/*******************************************************************************
|
|
@@ -994,7 +994,7 @@ Object .assign (Object .setPrototypeOf (LinePickSensor .prototype, Picking_X3DPi
|
|
|
994
994
|
if (active !== this ._isActive .getValue ())
|
|
995
995
|
this ._isActive = active;
|
|
996
996
|
|
|
997
|
-
if (!
|
|
997
|
+
if (!this ._pickedGeometry .equals (pickedGeometries))
|
|
998
998
|
this ._pickedGeometry = pickedGeometries;
|
|
999
999
|
|
|
1000
1000
|
break;
|
|
@@ -1070,7 +1070,7 @@ Object .assign (Object .setPrototypeOf (LinePickSensor .prototype, Picking_X3DPi
|
|
|
1070
1070
|
if (active !== this ._isActive .getValue ())
|
|
1071
1071
|
this ._isActive = active;
|
|
1072
1072
|
|
|
1073
|
-
if (!
|
|
1073
|
+
if (!this ._pickedGeometry .equals (pickedGeometries))
|
|
1074
1074
|
this ._pickedGeometry = pickedGeometries;
|
|
1075
1075
|
|
|
1076
1076
|
const pickedTargets = this .getPickedTargets ();
|
|
@@ -1097,13 +1097,13 @@ Object .assign (Object .setPrototypeOf (LinePickSensor .prototype, Picking_X3DPi
|
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
1100
|
-
if (!
|
|
1100
|
+
if (!this ._pickedTextureCoordinate .equals (pickedTextureCoordinate))
|
|
1101
1101
|
this ._pickedTextureCoordinate = pickedTextureCoordinate;
|
|
1102
1102
|
|
|
1103
|
-
if (!
|
|
1103
|
+
if (!this ._pickedNormal .equals (pickedNormal))
|
|
1104
1104
|
this ._pickedNormal = pickedNormal;
|
|
1105
1105
|
|
|
1106
|
-
if (!
|
|
1106
|
+
if (!this ._pickedPoint .equals (pickedPoint))
|
|
1107
1107
|
this ._pickedPoint = pickedPoint;
|
|
1108
1108
|
|
|
1109
1109
|
break;
|
|
@@ -1166,7 +1166,7 @@ const LinePickSensor_default_ = LinePickSensor;
|
|
|
1166
1166
|
Namespace_default().add ("LinePickSensor", "x_ite/Components/Picking/LinePickSensor", LinePickSensor_default_);
|
|
1167
1167
|
/* harmony default export */ const Picking_LinePickSensor = (LinePickSensor_default_);
|
|
1168
1168
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
1169
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
1169
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
1170
1170
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
1171
1171
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickableObject.js
|
|
1172
1172
|
/*******************************************************************************
|
|
@@ -1497,13 +1497,13 @@ const PickableGroup_default_ = PickableGroup;
|
|
|
1497
1497
|
Namespace_default().add ("PickableGroup", "x_ite/Components/Picking/PickableGroup", PickableGroup_default_);
|
|
1498
1498
|
/* harmony default export */ const Picking_PickableGroup = (PickableGroup_default_);
|
|
1499
1499
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
1500
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
1500
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Base/X3DCast");
|
|
1501
1501
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
1502
1502
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
1503
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
1503
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Numbers/Rotation4");
|
|
1504
1504
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
1505
1505
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/ammojs/AmmoClass\")"
|
|
1506
|
-
const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
1506
|
+
const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("lib/ammojs/AmmoClass");
|
|
1507
1507
|
var AmmoClass_default = /*#__PURE__*/__webpack_require__.n(AmmoClass_namespaceObject);
|
|
1508
1508
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/VolumePicker.js
|
|
1509
1509
|
/*******************************************************************************
|
|
@@ -1798,7 +1798,9 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, Picking_X3DP
|
|
|
1798
1798
|
|
|
1799
1799
|
if (coord)
|
|
1800
1800
|
{
|
|
1801
|
-
|
|
1801
|
+
const length = coord .getSize ();
|
|
1802
|
+
|
|
1803
|
+
for (let i = 0; i < length; ++ i)
|
|
1802
1804
|
{
|
|
1803
1805
|
if (i < compoundShapes .length)
|
|
1804
1806
|
{
|
|
@@ -1904,7 +1906,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, Picking_X3DP
|
|
|
1904
1906
|
if (active !== this ._isActive .getValue ())
|
|
1905
1907
|
this ._isActive = active;
|
|
1906
1908
|
|
|
1907
|
-
if (!
|
|
1909
|
+
if (!this ._pickedGeometry .equals (pickedGeometries))
|
|
1908
1910
|
this ._pickedGeometry = pickedGeometries;
|
|
1909
1911
|
|
|
1910
1912
|
break;
|
|
@@ -1968,7 +1970,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, Picking_X3DP
|
|
|
1968
1970
|
if (active !== this ._isActive .getValue ())
|
|
1969
1971
|
this ._isActive = active;
|
|
1970
1972
|
|
|
1971
|
-
if (!
|
|
1973
|
+
if (!this ._pickedGeometry .equals (pickedGeometries))
|
|
1972
1974
|
this ._pickedGeometry = pickedGeometries;
|
|
1973
1975
|
|
|
1974
1976
|
const pickedTargets = this .getPickedTargets ();
|
|
@@ -1983,7 +1985,7 @@ Object .assign (Object .setPrototypeOf (PointPickSensor .prototype, Picking_X3DP
|
|
|
1983
1985
|
pickedPoint .push (pp [p]);
|
|
1984
1986
|
}
|
|
1985
1987
|
|
|
1986
|
-
if (!
|
|
1988
|
+
if (!this ._pickedPoint .equals (pickedPoint))
|
|
1987
1989
|
this ._pickedPoint = pickedPoint;
|
|
1988
1990
|
|
|
1989
1991
|
break;
|
|
@@ -2207,7 +2209,7 @@ Object .assign (Object .setPrototypeOf (PrimitivePickSensor .prototype, Picking_
|
|
|
2207
2209
|
if (active !== this ._isActive .getValue ())
|
|
2208
2210
|
this ._isActive = active;
|
|
2209
2211
|
|
|
2210
|
-
if (!
|
|
2212
|
+
if (!this ._pickedGeometry .equals (pickedGeometries))
|
|
2211
2213
|
this ._pickedGeometry = pickedGeometries;
|
|
2212
2214
|
|
|
2213
2215
|
break;
|
|
@@ -2260,7 +2262,7 @@ Object .assign (Object .setPrototypeOf (PrimitivePickSensor .prototype, Picking_
|
|
|
2260
2262
|
if (active !== this ._isActive .getValue ())
|
|
2261
2263
|
this ._isActive = active;
|
|
2262
2264
|
|
|
2263
|
-
if (!
|
|
2265
|
+
if (!this ._pickedGeometry .equals (pickedGeometries))
|
|
2264
2266
|
this ._pickedGeometry = pickedGeometries;
|
|
2265
2267
|
|
|
2266
2268
|
break;
|
|
@@ -2458,7 +2460,7 @@ Object .assign (Object .setPrototypeOf (VolumePickSensor .prototype, Picking_X3D
|
|
|
2458
2460
|
if (active !== this ._isActive .getValue ())
|
|
2459
2461
|
this ._isActive = active;
|
|
2460
2462
|
|
|
2461
|
-
if (!
|
|
2463
|
+
if (!this ._pickedGeometry .equals (pickedGeometries))
|
|
2462
2464
|
this ._pickedGeometry = pickedGeometries;
|
|
2463
2465
|
|
|
2464
2466
|
break;
|
|
@@ -2511,7 +2513,7 @@ Object .assign (Object .setPrototypeOf (VolumePickSensor .prototype, Picking_X3D
|
|
|
2511
2513
|
if (active !== this ._isActive .getValue ())
|
|
2512
2514
|
this ._isActive = active;
|
|
2513
2515
|
|
|
2514
|
-
if (!
|
|
2516
|
+
if (!this ._pickedGeometry .equals (pickedGeometries))
|
|
2515
2517
|
this ._pickedGeometry = pickedGeometries;
|
|
2516
2518
|
|
|
2517
2519
|
break;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v9.4.2 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const c=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(c);const l=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(l);const h=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Rendering/TraverseType");var d=e.n(h);const g=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Base/X3DConstants");var u=e.n(g);const m=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Namespace");var y=e.n(m);let _=0;const w={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().add("MatchCriterion","x_ite/Browser/Picking/MatchCriterion",w);const k=w;let S=0;const f={BOUNDS:S++,GEOMETRY:S++};y().add("IntersectionType","x_ite/Browser/Picking/IntersectionType",f);const b=f;let O=0;const T={ANY:O++,CLOSEST:O++,ALL:O++,ALL_SORTED:O++};y().add("SortOrder","x_ite/Browser/Picking/SortOrder",T);const N=T,C=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Numbers/Matrix4");var P=e.n(C);function v(e,t){this.array=e,t&&(this.compare=t)}Object.assign(v.prototype,{compare:(e,t)=>e<t,sort(e,t){t-e>1&&this.quicksort(e,t-1)},quicksort(e,t){let i=e,n=t;const{array:o,compare:s}=this,r=o[e+t>>>1];for(;;){for(;s(o[i],r);)++i;for(;s(r,o[n]);)--n;if(!(i<n)){i===n&&(++i,--n);break}{const e=o[i];o[i]=o[n],o[n]=e,i++,n--}}e<n&&this.quicksort(e,n),i<t&&this.quicksort(i,t)}});const G=v;y().add("QuickSort","standard/Math/Algorithms/QuickSort",G);const M=G,x=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Utility/ObjectCache");var B,j,F,I=e.n(x)()(P());function A(e,t){return e.distance<t.distance}function D(e){p().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=b.BOUNDS,this.sortOrder=N.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new M(this.pickedTargets,A),this.pickedGeometries=new(o().MFNode)}Object.assign(Object.setPrototypeOf(D.prototype,p().prototype),{initialize(){this.getLive().addInterest("set_live__",this),this._enabled.addInterest("set_live__",this),this._objectType.addInterest("set_objectType__",this),this._matchCriterion.addInterest("set_matchCriterion__",this),this._intersectionType.addInterest("set_intersectionType__",this),this._sortOrder.addInterest("set_sortOrder__",this),this._pickTarget.addInterest("set_pickTarget__",this),this.set_objectType__(),this.set_matchCriterion__(),this.set_intersectionType__(),this.set_sortOrder__(),this.set_pickTarget__()},getObjectType(){return this.objectType},getMatchCriterion(){return this.matchCriterion},getIntersectionType(){return this.intersectionType},getSortOrder(){return this.sortOrder},getModelMatrices(){return this.modelMatrices},getTargets(){return this.targets},getPickShape:(()=>{const e=new WeakMap;return function(t){const i=e.get(t);if(void 0!==i)return i;const n=this.getBrowser(),o=n.getPrivateScene().createNode("Shape",!1),s=n.getPrivateScene().createNode("CollidableShape",!1);return o.setPrivate(!0),s.setPrivate(!0),s.setConvex(!0),o._geometry=t,s._shape=o,o.setup(),s.setup(),e.set(t,s),s}})(),getPickedGeometries:function(){var e=this.targets,t=e.size,i=this.pickedTargets,n=this.pickedGeometries;i.length=0;for(var o=0;o<t;++o){var s=e[o];s.intersected&&i.push(s)}if(0===i.length)return n.length=0,n;switch(this.sortOrder){case N.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case N.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case N.ALL:o=0;for(var r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r;break;case N.ALL_SORTED:for(this.pickedTargetsSorter.sort(0,i.length),o=0,r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r}return n},getPickedGeometry(e){var t=this.getExecutionContext(),i=e.geometryNode;if(i.getExecutionContext()===t)return i;if((s=i.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s;for(var n=e.pickingHierarchy,o=n.length-1;o>=0;--o){var s,r=n[o];if(r.getExecutionContext()===t)return r;if((s=r.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s}return null},getPickedTargets(){return this.pickedTargets},set_live__(){this.getLive().getValue()&&this._enabled.getValue()&&!this.objectType.has("NONE")?(this.getBrowser().addPickSensor(this),this.setPickableObject(!0)):(this.getBrowser().removePickSensor(this),this.setPickableObject(!1))},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e]);this.set_live__()},set_matchCriterion__:(F=new Map([["MATCH_ANY",k.MATCH_ANY],["MATCH_EVERY",k.MATCH_EVERY],["MATCH_ONLY_ONE",k.MATCH_ONLY_ONE]]),function(){this.matchCriterion=F.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(j=new Map([["BOUNDS",b.BOUNDS],["GEOMETRY",b.GEOMETRY]]),function(){this.intersectionType=j.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=b.BOUNDS)}),set_sortOrder__:(B=new Map([["ANY",N.ANY],["CLOSEST",N.CLOSEST],["ALL",N.ALL],["ALL_SORTED",N.ALL_SORTED]]),function(){this.sortOrder=B.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=N.CLOSEST)}),set_pickTarget__(){this.pickTargetNodes.clear();for(var e=0,t=this._pickTarget.length;e<t;++e)try{for(var i=this._pickTarget[e].getValue().getInnerNode(),n=i.getType(),o=n.length-1;o>=0;--o)switch(n[o]){case u().Inline:case u().Shape:case u().X3DGroupingNode:this.pickTargetNodes.add(i);break;default:continue}}catch{}},traverse(e,t){e===d().PICKING&&this.isPickableObject()&&this.modelMatrices.push(I.pop().assign(t.getModelViewMatrix().get()))},collect(e,t,i){var n=this.pickTargetNodes;if(i.some((e=>n.has(e)))){var o=this.targets;if(o.size<o.length)var s=o[o.size];else{s={modelMatrix:new(P()),pickingHierarchy:[],pickedPoint:[],intersections:[]};o.push(s)}++o.size,s.intersected=!1,s.geometryNode=e,s.pickedPoint.length=0,s.intersections.length=0,s.modelMatrix.assign(t);for(var r=s.pickingHierarchy,c=0,a=i.length;c<a;++c)r[c]=i[c];r.length=a}},process(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)I.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}}),Object.defineProperties(D,{typeName:{value:"X3DPickSensorNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0}});const E=D;y().add("X3DPickSensorNode","x_ite/Components/Picking/X3DPickSensorNode",E);const z=E,L=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Numbers/Vector3");var V=e.n(L);const X=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Geometry/Box3");var R=e.n(X);const q=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Geometry/Line3");var Y=e.n(q);function H(e){z.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}Object.assign(Object.setPrototypeOf(H.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{const e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType();for(let i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(()=>{const e=new(R()),t=new(R()),i=new(V()),n=new(V()),s=new(P()),r=new(V()),c=new(V()),a=new(Y())(V().Zero,V().zAxis),l=new(V()),p=new(V()),h=[],d=[],g=new(V()),u=new(o().MFVec3f),m=new(o().MFVec3f),y=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){const o=this.getModelMatrices(),_=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:{for(let s=0,r=o.length;s<r;++s){const r=o[s];e.assign(this.pickingGeometryNode.getBBox()).multRight(r);for(let o=0,s=_.size;o<s;++o){const s=_[o];t.assign(s.geometryNode.getBBox()).multRight(s.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),s.intersected=!0,s.distance=i.distance(n))}}const s=this.getPickedGeometries(),r=!!s.length;s.assign(s.filter((e=>e))),r!==this._isActive.getValue()&&(this._isActive=r),this._pickedGeometry.equals(s)||(this._pickedGeometry=s);break}case b.GEOMETRY:{for(let g=0,u=o.length;g<u;++g){const u=o[g];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(let o=0,g=_.size;o<g;++o){const g=_[o],m=g.geometryNode,y=this.pickingGeometryNode.getVertices();t.assign(m.getBBox()).multRight(g.modelMatrix),s.assign(g.modelMatrix).inverse().multLeft(u);for(let e=0,t=y.length;e<t;e+=8)if(s.multVecMatrix(r.set(y[e+0],y[e+1],y[e+2])),s.multVecMatrix(c.set(y[e+4],y[e+5],y[e+6])),a.setPoints(r,c),d.length=0,m.intersectsLine(a,g.modelMatrix,h,d))for(let e=0,t=d.length;e<t;++e){const t=d[e];l.assign(t.point).subtract(r),p.assign(t.point).subtract(c);l.add(p).magnitude()<=r.distance(c)&&g.intersections.push(t)}g.intersections.length&&(i.assign(e.center),n.assign(t.center),g.intersected=!0,g.distance=i.distance(n))}}const w=this.getPickedGeometries(),k=!!w.length;w.assign(w.filter((e=>e))),k!==this._isActive.getValue()&&(this._isActive=k),this._pickedGeometry.equals(w)||(this._pickedGeometry=w);const S=this.getPickedTargets();u.length=0,m.length=0,y.length=0;for(let e=0,t=S.length;e<t;++e){const t=S[e].intersections;for(let e=0,i=t.length;e<i;++e){const i=t[e],n=i.texCoord;g.set(n.x,n.y,n.z),u.push(g),m.push(i.normal),y.push(i.point)}}this._pickedTextureCoordinate.equals(u)||(this._pickedTextureCoordinate=u),this._pickedNormal.equals(m)||(this._pickedNormal=m),this._pickedPoint.equals(y)||(this._pickedPoint=y);break}}}z.prototype.process.call(this)}})()}),Object.defineProperties(H,{typeName:{value:"LinePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedTextureCoordinate",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedNormal",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const U=H;y().add("LinePickSensor","x_ite/Components/Picking/LinePickSensor",U);const W=U,K=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=e.n(K);function Z(e){this.addType(u().X3DPickableObject),this.objectType=new Set}Object.assign(Z.prototype,{initialize(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType(){return this.objectType},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose(){}}),Object.defineProperties(Z,{typeName:{value:"X3DPickableObject",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0}});const J=Z;y().add("X3DPickableObject","x_ite/Components/Picking/X3DPickableObject",J);const $=J;function ee(e){Q().call(this,e),$.call(this,e),this.addType(u().PickableGroup),this.pickSensorNodes=new Set}Object.assign(Object.setPrototypeOf(ee.prototype,Q().prototype),$.prototype,{initialize(){Q().prototype.initialize.call(this),$.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__(){this.set_pickable__()},set_pickable__(){this.setPickableObject(this._pickable.getValue()||this.getTransformSensors().size)},traverse(e,t){if(e===d().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const i=this.getBrowser(),n=i.getPickable();if(this.getObjectType().has("ALL"))n.push(!0),Q().prototype.traverse.call(this,e,t),n.pop();else{const o=this.pickSensorNodes,s=i.getPickSensors();for(const e of s.at(-1)){if(!e.getObjectType().has("ALL")){let t=0;for(const i of this.getObjectType())if(e.getObjectType().has(i)){++t;break}switch(e.getMatchCriterion()){case k.MATCH_ANY:if(0===t)continue;break;case k.MATCH_EVERY:if(t!==pickSensor.getObjectType().size)continue;break;case k.MATCH_ONLY_ONE:if(1!==t)continue}}o.add(e)}n.push(!0),s.push(o),Q().prototype.traverse.call(this,e,t),s.pop(),n.pop(),o.clear()}}}else Q().prototype.traverse.call(this,e,t)},dispose(){$.prototype.dispose.call(this),Q().prototype.dispose.call(this)}}),Object.defineProperties(ee,{typeName:{value:"PickableGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"pickable",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const te=ee;y().add("PickableGroup","x_ite/Components/Picking/PickableGroup",te);const ie=te,ne=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Base/X3DCast");var oe=e.n(ne);const se=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Numbers/Rotation4");var re=e.n(se);const ce=window[Symbol.for("X_ITE.X3D-9.4.2")].require("lib/ammojs/AmmoClass");var ae=e.n(ce);function le(){this.broadphase=new(ae().btDbvtBroadphase),this.collisionConfiguration=new(ae().btDefaultCollisionConfiguration),this.dispatcher=new(ae().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(ae().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(ae().btCompoundShape),this.motionState1=new(ae().btDefaultMotionState),this.constructionInfo1=new(ae().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(ae().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(ae().btCompoundShape),this.motionState2=new(ae().btDefaultMotionState),this.constructionInfo2=new(ae().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(ae().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}Object.assign(le.prototype,{constuctor:le,setChildShape1(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:(()=>{const e=new(V()),t=new(re()),i=new(V())(1,1,1),n=new(ae().btVector3)(0,0,0);return function(o,s,r){o.getNumChildShapes()&&o.removeChildShapeByIndex(0),r.getNumChildShapes()&&(s.get(e,t,i),n.setValue(i.x,i.y,i.z),r.setLocalScaling(n),o.addChildShape(this.getTransform(e,t),r))}})(),setChildShapeComponents(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest(){this.collisionWorld.performDiscreteCollisionDetection();const e=this.dispatcher.getNumManifolds();for(let t=0;t<e;++t){const e=this.dispatcher.getManifoldByIndexInternal(t),i=e.getNumContacts();for(let t=0;t<i;++t){if(e.getContactPoint(t).getDistance()<=0)return!0}}return!1},getTransform:(()=>{const e=new(ae().btTransform),t=new(ae().btVector3)(0,0,0),i=new(P());return function(n,o,s){const r=s||e;return i.set(n,o),t.setValue(i[12],i[13],i[14]),r.getBasis().setValue(i[0],i[4],i[8],i[1],i[5],i[9],i[2],i[6],i[10]),r.setOrigin(t),r}})()});const pe=le;y().add("VolumePicker","x_ite/Browser/Picking/VolumePicker",pe);const he=pe;function de(e){z.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new he,this.compoundShapes=[]}Object.assign(Object.setPrototypeOf(de.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=oe()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(()=>{const e=new(ae().btVector3)(1,1,1),t=new(ae().btVector3),i=new(ae().btTransform);return function(){const n=this.compoundShapes;if(this.pickingGeometryNode){const o=this.pickingGeometryNode.getCoord();if(o){for(let s=0,r=o.getSize();s<r;++s)if(s<n.length){const r=n[s],c=o.get1Point(s,r.point);t.setValue(c.x,c.y,c.z),i.setOrigin(t),r.setLocalScaling(e),r.updateChildTransform(0,i)}else{const e=new(ae().btCompoundShape),r=new(ae().btSphereShape)(0),c=o.get1Point(s,new(V()));e.point=c,t.setValue(c.x,c.y,c.z),i.setOrigin(t),e.addChildShape(i,r),n.push(e)}n.length=length}else n.length=0}else n.length=0}})(),process:(()=>{const e=new(R()),t=new(R()),i=new(V()),n=new(V()),s=new(ae().btTransform),r=new(ae().btVector3),c=new(V()),a=new(re()),l=new(V())(1,1,1),p=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){const o=this.getModelMatrices(),h=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:{for(let s=0,r=o.length;s<r;++s){const r=o[s];e.assign(this.pickingGeometryNode.getBBox()).multRight(r);for(let o=0,s=h.size;o<s;++o){const s=h[o];t.assign(s.geometryNode.getBBox()).multRight(s.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),s.intersected=!0,s.distance=i.distance(n))}}const s=this.getPickedGeometries(),r=!!s.length;s.assign(s.filter((e=>e))),r!==this._isActive.getValue()&&(this._isActive=r),this._pickedGeometry.equals(s)||(this._pickedGeometry=s);break}case b.GEOMETRY:{const d=this.picker,g=this.compoundShapes;for(let p=0,u=o.length;p<u;++p){const u=o[p];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(c,a,l),d.getTransform(c,a,s),r.setValue(l.x,l.y,l.z);for(let o=0,c=g.length;o<c;++o){const c=g[o];d.setChildShape1Components(s,r,c);for(let o=0,s=h.size;o<s;++o){const s=h[o],r=this.getPickShape(s.geometryNode);t.assign(s.geometryNode.getBBox()).multRight(s.modelMatrix),d.setChildShape2(s.modelMatrix,r.getCompoundShape()),d.contactTest()&&(i.assign(e.center),n.assign(t.center),s.intersected=!0,s.distance=i.distance(n),s.pickedPoint.push(c.point))}}}const u=this.getPickedGeometries(),m=!!u.length;u.assign(u.filter((e=>e))),m!==this._isActive.getValue()&&(this._isActive=m),this._pickedGeometry.equals(u)||(this._pickedGeometry=u);const y=this.getPickedTargets();p.length=0;for(let e=0,t=y.length;e<t;++e){const t=y[e].pickedPoint;for(let e=0,i=t.length;e<i;++e)p.push(t[e])}this._pickedPoint.equals(p)||(this._pickedPoint=p);break}}}z.prototype.process.call(this)}})()}),Object.defineProperties(de,{typeName:{value:"PointPickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const ge=de;y().add("PointPickSensor","x_ite/Components/Picking/PointPickSensor",ge);const ue=ge;function me(e){z.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new he}Object.assign(Object.setPrototypeOf(me.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{const e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType();for(let i=t.length-1;i>=0;--i)switch(t[i]){case u().Box:case u().Cone:case u().Cylinder:case u().Sphere:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(()=>{const e=new(R()),t=new(R()),i=new(V()),n=new(V());return function(){if(this.pickingGeometryNode){const o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:{for(let r=0,c=o.length;r<c;++r){const c=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(let o=0,r=s.size;o<r;++o){const r=s[o];t.assign(r.geometryNode.getBBox()).multRight(r.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),r.intersected=!0,r.distance=i.distance(n))}}const r=this.getPickedGeometries(),c=!!r.length;r.assign(r.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(r)||(this._pickedGeometry=r);break}case b.GEOMETRY:{const r=this.picker;for(let c=0,a=o.length;c<a;++c){const a=o[c],l=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),r.setChildShape1(a,l.getCompoundShape());for(let o=0,c=s.size;o<c;++o){const c=s[o],a=this.getPickShape(c.geometryNode);t.assign(c.geometryNode.getBBox()).multRight(c.modelMatrix),r.setChildShape2(c.modelMatrix,a.getCompoundShape()),r.contactTest()&&(i.assign(e.center),n.assign(t.center),c.intersected=!0,c.distance=i.distance(n))}}const c=this.getPickedGeometries(),a=!!c.length;c.assign(c.filter((e=>e))),a!==this._isActive.getValue()&&(this._isActive=a),this._pickedGeometry.equals(c)||(this._pickedGeometry=c);break}}}z.prototype.process.call(this)}})()}),Object.defineProperties(me,{typeName:{value:"PrimitivePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const ye=me;y().add("PrimitivePickSensor","x_ite/Components/Picking/PrimitivePickSensor",ye);const _e=ye;function we(e){z.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new he}Object.assign(Object.setPrototypeOf(we.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=oe()(u().X3DGeometryNode,this._pickingGeometry)},process:(()=>{const e=new(R()),t=new(R()),i=new(V()),n=new(V());return function(){if(this.pickingGeometryNode){const o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:{for(let r=0,c=o.length;r<c;++r){const c=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(let o=0,r=s.size;o<r;++o){const r=s[o];t.assign(r.geometryNode.getBBox()).multRight(r.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),r.intersected=!0,r.distance=i.distance(n))}}const r=this.getPickedGeometries(),c=!!r.length;r.assign(r.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(r)||(this._pickedGeometry=r);break}case b.GEOMETRY:{const r=this.picker;for(let c=0,a=o.length;c<a;++c){const a=o[c],l=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),r.setChildShape1(a,l.getCompoundShape());for(let o=0,c=s.size;o<c;++o){const c=s[o],a=this.getPickShape(c.geometryNode);t.assign(c.geometryNode.getBBox()).multRight(c.modelMatrix),r.setChildShape2(c.modelMatrix,a.getCompoundShape()),r.contactTest()&&(i.assign(e.center),n.assign(t.center),c.intersected=!0,c.distance=i.distance(n))}}const c=this.getPickedGeometries(),a=!!c.length;c.assign(c.filter((e=>e))),a!==this._isActive.getValue()&&(this._isActive=a),this._pickedGeometry.equals(c)||(this._pickedGeometry=c);break}}}z.prototype.process.call(this)}})()}),Object.defineProperties(we,{typeName:{value:"VolumePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:3}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const ke=we;y().add("VolumePickSensor","x_ite/Components/Picking/VolumePickSensor",ke);const Se=ke;i().add({name:"Picking",concreteNodes:[W,ie,ue,_e,Se],abstractNodes:[z,$]});const fe=void 0;y().add("Picking","assets/components/Picking",fe)})();
|
|
1
|
+
/* X_ITE v9.4.4 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const c=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(c);const p=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Components/Core/X3DSensorNode");var l=e.n(p);const h=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Rendering/TraverseType");var d=e.n(h);const g=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Base/X3DConstants");var u=e.n(g);const m=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Namespace");var y=e.n(m);let _=0;const w={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().add("MatchCriterion","x_ite/Browser/Picking/MatchCriterion",w);const k=w;let S=0;const f={BOUNDS:S++,GEOMETRY:S++};y().add("IntersectionType","x_ite/Browser/Picking/IntersectionType",f);const b=f;let O=0;const T={ANY:O++,CLOSEST:O++,ALL:O++,ALL_SORTED:O++};y().add("SortOrder","x_ite/Browser/Picking/SortOrder",T);const N=T,C=window[Symbol.for("X_ITE.X3D-9.4.4")].require("standard/Math/Numbers/Matrix4");var P=e.n(C);function v(e,t){this.array=e,t&&(this.compare=t)}Object.assign(v.prototype,{compare:(e,t)=>e<t,sort(e,t){t-e>1&&this.quicksort(e,t-1)},quicksort(e,t){let i=e,n=t;const{array:o,compare:s}=this,r=o[e+t>>>1];for(;;){for(;s(o[i],r);)++i;for(;s(r,o[n]);)--n;if(!(i<n)){i===n&&(++i,--n);break}{const e=o[i];o[i]=o[n],o[n]=e,i++,n--}}e<n&&this.quicksort(e,n),i<t&&this.quicksort(i,t)}});const G=v;y().add("QuickSort","standard/Math/Algorithms/QuickSort",G);const M=G,x=window[Symbol.for("X_ITE.X3D-9.4.4")].require("standard/Utility/ObjectCache");var B,j,F,I=e.n(x)()(P());function A(e,t){return e.distance<t.distance}function D(e){l().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=b.BOUNDS,this.sortOrder=N.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new M(this.pickedTargets,A),this.pickedGeometries=new(o().MFNode)}Object.assign(Object.setPrototypeOf(D.prototype,l().prototype),{initialize(){this.getLive().addInterest("set_live__",this),this._enabled.addInterest("set_live__",this),this._objectType.addInterest("set_objectType__",this),this._matchCriterion.addInterest("set_matchCriterion__",this),this._intersectionType.addInterest("set_intersectionType__",this),this._sortOrder.addInterest("set_sortOrder__",this),this._pickTarget.addInterest("set_pickTarget__",this),this.set_objectType__(),this.set_matchCriterion__(),this.set_intersectionType__(),this.set_sortOrder__(),this.set_pickTarget__()},getObjectType(){return this.objectType},getMatchCriterion(){return this.matchCriterion},getIntersectionType(){return this.intersectionType},getSortOrder(){return this.sortOrder},getModelMatrices(){return this.modelMatrices},getTargets(){return this.targets},getPickShape:(()=>{const e=new WeakMap;return function(t){const i=e.get(t);if(void 0!==i)return i;const n=this.getBrowser(),o=n.getPrivateScene().createNode("Shape",!1),s=n.getPrivateScene().createNode("CollidableShape",!1);return o.setPrivate(!0),s.setPrivate(!0),s.setConvex(!0),o._geometry=t,s._shape=o,o.setup(),s.setup(),e.set(t,s),s}})(),getPickedGeometries:function(){var e=this.targets,t=e.size,i=this.pickedTargets,n=this.pickedGeometries;i.length=0;for(var o=0;o<t;++o){var s=e[o];s.intersected&&i.push(s)}if(0===i.length)return n.length=0,n;switch(this.sortOrder){case N.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case N.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case N.ALL:o=0;for(var r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r;break;case N.ALL_SORTED:for(this.pickedTargetsSorter.sort(0,i.length),o=0,r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r}return n},getPickedGeometry(e){var t=this.getExecutionContext(),i=e.geometryNode;if(i.getExecutionContext()===t)return i;if((s=i.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s;for(var n=e.pickingHierarchy,o=n.length-1;o>=0;--o){var s,r=n[o];if(r.getExecutionContext()===t)return r;if((s=r.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s}return null},getPickedTargets(){return this.pickedTargets},set_live__(){this.getLive().getValue()&&this._enabled.getValue()&&!this.objectType.has("NONE")?(this.getBrowser().addPickSensor(this),this.setPickableObject(!0)):(this.getBrowser().removePickSensor(this),this.setPickableObject(!1))},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e]);this.set_live__()},set_matchCriterion__:(F=new Map([["MATCH_ANY",k.MATCH_ANY],["MATCH_EVERY",k.MATCH_EVERY],["MATCH_ONLY_ONE",k.MATCH_ONLY_ONE]]),function(){this.matchCriterion=F.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(j=new Map([["BOUNDS",b.BOUNDS],["GEOMETRY",b.GEOMETRY]]),function(){this.intersectionType=j.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=b.BOUNDS)}),set_sortOrder__:(B=new Map([["ANY",N.ANY],["CLOSEST",N.CLOSEST],["ALL",N.ALL],["ALL_SORTED",N.ALL_SORTED]]),function(){this.sortOrder=B.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=N.CLOSEST)}),set_pickTarget__(){this.pickTargetNodes.clear();for(var e=0,t=this._pickTarget.length;e<t;++e)try{for(var i=this._pickTarget[e].getValue().getInnerNode(),n=i.getType(),o=n.length-1;o>=0;--o)switch(n[o]){case u().Inline:case u().Shape:case u().X3DGroupingNode:this.pickTargetNodes.add(i);break;default:continue}}catch{}},traverse(e,t){e===d().PICKING&&this.isPickableObject()&&this.modelMatrices.push(I.pop().assign(t.getModelViewMatrix().get()))},collect(e,t,i){var n=this.pickTargetNodes;if(i.some((e=>n.has(e)))){var o=this.targets;if(o.size<o.length)var s=o[o.size];else{s={modelMatrix:new(P()),pickingHierarchy:[],pickedPoint:[],intersections:[]};o.push(s)}++o.size,s.intersected=!1,s.geometryNode=e,s.pickedPoint.length=0,s.intersections.length=0,s.modelMatrix.assign(t);for(var r=s.pickingHierarchy,c=0,a=i.length;c<a;++c)r[c]=i[c];r.length=a}},process(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)I.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}}),Object.defineProperties(D,{typeName:{value:"X3DPickSensorNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0}});const E=D;y().add("X3DPickSensorNode","x_ite/Components/Picking/X3DPickSensorNode",E);const z=E,L=window[Symbol.for("X_ITE.X3D-9.4.4")].require("standard/Math/Numbers/Vector3");var V=e.n(L);const X=window[Symbol.for("X_ITE.X3D-9.4.4")].require("standard/Math/Geometry/Box3");var R=e.n(X);const q=window[Symbol.for("X_ITE.X3D-9.4.4")].require("standard/Math/Geometry/Line3");var Y=e.n(q);function H(e){z.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}Object.assign(Object.setPrototypeOf(H.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{const e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType();for(let i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(()=>{const e=new(R()),t=new(R()),i=new(V()),n=new(V()),s=new(P()),r=new(V()),c=new(V()),a=new(Y())(V().Zero,V().zAxis),p=new(V()),l=new(V()),h=[],d=[],g=new(V()),u=new(o().MFVec3f),m=new(o().MFVec3f),y=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){const o=this.getModelMatrices(),_=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:{for(let s=0,r=o.length;s<r;++s){const r=o[s];e.assign(this.pickingGeometryNode.getBBox()).multRight(r);for(let o=0,s=_.size;o<s;++o){const s=_[o];t.assign(s.geometryNode.getBBox()).multRight(s.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),s.intersected=!0,s.distance=i.distance(n))}}const s=this.getPickedGeometries(),r=!!s.length;s.assign(s.filter((e=>e))),r!==this._isActive.getValue()&&(this._isActive=r),this._pickedGeometry.equals(s)||(this._pickedGeometry=s);break}case b.GEOMETRY:{for(let g=0,u=o.length;g<u;++g){const u=o[g];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(let o=0,g=_.size;o<g;++o){const g=_[o],m=g.geometryNode,y=this.pickingGeometryNode.getVertices();t.assign(m.getBBox()).multRight(g.modelMatrix),s.assign(g.modelMatrix).inverse().multLeft(u);for(let e=0,t=y.length;e<t;e+=8)if(s.multVecMatrix(r.set(y[e+0],y[e+1],y[e+2])),s.multVecMatrix(c.set(y[e+4],y[e+5],y[e+6])),a.setPoints(r,c),d.length=0,m.intersectsLine(a,g.modelMatrix,h,d))for(let e=0,t=d.length;e<t;++e){const t=d[e];p.assign(t.point).subtract(r),l.assign(t.point).subtract(c);p.add(l).magnitude()<=r.distance(c)&&g.intersections.push(t)}g.intersections.length&&(i.assign(e.center),n.assign(t.center),g.intersected=!0,g.distance=i.distance(n))}}const w=this.getPickedGeometries(),k=!!w.length;w.assign(w.filter((e=>e))),k!==this._isActive.getValue()&&(this._isActive=k),this._pickedGeometry.equals(w)||(this._pickedGeometry=w);const S=this.getPickedTargets();u.length=0,m.length=0,y.length=0;for(let e=0,t=S.length;e<t;++e){const t=S[e].intersections;for(let e=0,i=t.length;e<i;++e){const i=t[e],n=i.texCoord;g.set(n.x,n.y,n.z),u.push(g),m.push(i.normal),y.push(i.point)}}this._pickedTextureCoordinate.equals(u)||(this._pickedTextureCoordinate=u),this._pickedNormal.equals(m)||(this._pickedNormal=m),this._pickedPoint.equals(y)||(this._pickedPoint=y);break}}}z.prototype.process.call(this)}})()}),Object.defineProperties(H,{typeName:{value:"LinePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedTextureCoordinate",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedNormal",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const U=H;y().add("LinePickSensor","x_ite/Components/Picking/LinePickSensor",U);const W=U,K=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=e.n(K);function Z(e){this.addType(u().X3DPickableObject),this.objectType=new Set}Object.assign(Z.prototype,{initialize(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType(){return this.objectType},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose(){}}),Object.defineProperties(Z,{typeName:{value:"X3DPickableObject",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0}});const J=Z;y().add("X3DPickableObject","x_ite/Components/Picking/X3DPickableObject",J);const $=J;function ee(e){Q().call(this,e),$.call(this,e),this.addType(u().PickableGroup),this.pickSensorNodes=new Set}Object.assign(Object.setPrototypeOf(ee.prototype,Q().prototype),$.prototype,{initialize(){Q().prototype.initialize.call(this),$.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__(){this.set_pickable__()},set_pickable__(){this.setPickableObject(this._pickable.getValue()||this.getTransformSensors().size)},traverse(e,t){if(e===d().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const i=this.getBrowser(),n=i.getPickable();if(this.getObjectType().has("ALL"))n.push(!0),Q().prototype.traverse.call(this,e,t),n.pop();else{const o=this.pickSensorNodes,s=i.getPickSensors();for(const e of s.at(-1)){if(!e.getObjectType().has("ALL")){let t=0;for(const i of this.getObjectType())if(e.getObjectType().has(i)){++t;break}switch(e.getMatchCriterion()){case k.MATCH_ANY:if(0===t)continue;break;case k.MATCH_EVERY:if(t!==pickSensor.getObjectType().size)continue;break;case k.MATCH_ONLY_ONE:if(1!==t)continue}}o.add(e)}n.push(!0),s.push(o),Q().prototype.traverse.call(this,e,t),s.pop(),n.pop(),o.clear()}}}else Q().prototype.traverse.call(this,e,t)},dispose(){$.prototype.dispose.call(this),Q().prototype.dispose.call(this)}}),Object.defineProperties(ee,{typeName:{value:"PickableGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"pickable",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const te=ee;y().add("PickableGroup","x_ite/Components/Picking/PickableGroup",te);const ie=te,ne=window[Symbol.for("X_ITE.X3D-9.4.4")].require("x_ite/Base/X3DCast");var oe=e.n(ne);const se=window[Symbol.for("X_ITE.X3D-9.4.4")].require("standard/Math/Numbers/Rotation4");var re=e.n(se);const ce=window[Symbol.for("X_ITE.X3D-9.4.4")].require("lib/ammojs/AmmoClass");var ae=e.n(ce);function pe(){this.broadphase=new(ae().btDbvtBroadphase),this.collisionConfiguration=new(ae().btDefaultCollisionConfiguration),this.dispatcher=new(ae().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(ae().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(ae().btCompoundShape),this.motionState1=new(ae().btDefaultMotionState),this.constructionInfo1=new(ae().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(ae().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(ae().btCompoundShape),this.motionState2=new(ae().btDefaultMotionState),this.constructionInfo2=new(ae().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(ae().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}Object.assign(pe.prototype,{constuctor:pe,setChildShape1(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:(()=>{const e=new(V()),t=new(re()),i=new(V())(1,1,1),n=new(ae().btVector3)(0,0,0);return function(o,s,r){o.getNumChildShapes()&&o.removeChildShapeByIndex(0),r.getNumChildShapes()&&(s.get(e,t,i),n.setValue(i.x,i.y,i.z),r.setLocalScaling(n),o.addChildShape(this.getTransform(e,t),r))}})(),setChildShapeComponents(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest(){this.collisionWorld.performDiscreteCollisionDetection();const e=this.dispatcher.getNumManifolds();for(let t=0;t<e;++t){const e=this.dispatcher.getManifoldByIndexInternal(t),i=e.getNumContacts();for(let t=0;t<i;++t){if(e.getContactPoint(t).getDistance()<=0)return!0}}return!1},getTransform:(()=>{const e=new(ae().btTransform),t=new(ae().btVector3)(0,0,0),i=new(P());return function(n,o,s){const r=s||e;return i.set(n,o),t.setValue(i[12],i[13],i[14]),r.getBasis().setValue(i[0],i[4],i[8],i[1],i[5],i[9],i[2],i[6],i[10]),r.setOrigin(t),r}})()});const le=pe;y().add("VolumePicker","x_ite/Browser/Picking/VolumePicker",le);const he=le;function de(e){z.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new he,this.compoundShapes=[]}Object.assign(Object.setPrototypeOf(de.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=oe()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(()=>{const e=new(ae().btVector3)(1,1,1),t=new(ae().btVector3),i=new(ae().btTransform);return function(){const n=this.compoundShapes;if(this.pickingGeometryNode){const o=this.pickingGeometryNode.getCoord();if(o){const s=o.getSize();for(let r=0;r<s;++r)if(r<n.length){const s=n[r],c=o.get1Point(r,s.point);t.setValue(c.x,c.y,c.z),i.setOrigin(t),s.setLocalScaling(e),s.updateChildTransform(0,i)}else{const e=new(ae().btCompoundShape),s=new(ae().btSphereShape)(0),c=o.get1Point(r,new(V()));e.point=c,t.setValue(c.x,c.y,c.z),i.setOrigin(t),e.addChildShape(i,s),n.push(e)}n.length=s}else n.length=0}else n.length=0}})(),process:(()=>{const e=new(R()),t=new(R()),i=new(V()),n=new(V()),s=new(ae().btTransform),r=new(ae().btVector3),c=new(V()),a=new(re()),p=new(V())(1,1,1),l=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){const o=this.getModelMatrices(),h=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:{for(let s=0,r=o.length;s<r;++s){const r=o[s];e.assign(this.pickingGeometryNode.getBBox()).multRight(r);for(let o=0,s=h.size;o<s;++o){const s=h[o];t.assign(s.geometryNode.getBBox()).multRight(s.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),s.intersected=!0,s.distance=i.distance(n))}}const s=this.getPickedGeometries(),r=!!s.length;s.assign(s.filter((e=>e))),r!==this._isActive.getValue()&&(this._isActive=r),this._pickedGeometry.equals(s)||(this._pickedGeometry=s);break}case b.GEOMETRY:{const d=this.picker,g=this.compoundShapes;for(let l=0,u=o.length;l<u;++l){const u=o[l];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(c,a,p),d.getTransform(c,a,s),r.setValue(p.x,p.y,p.z);for(let o=0,c=g.length;o<c;++o){const c=g[o];d.setChildShape1Components(s,r,c);for(let o=0,s=h.size;o<s;++o){const s=h[o],r=this.getPickShape(s.geometryNode);t.assign(s.geometryNode.getBBox()).multRight(s.modelMatrix),d.setChildShape2(s.modelMatrix,r.getCompoundShape()),d.contactTest()&&(i.assign(e.center),n.assign(t.center),s.intersected=!0,s.distance=i.distance(n),s.pickedPoint.push(c.point))}}}const u=this.getPickedGeometries(),m=!!u.length;u.assign(u.filter((e=>e))),m!==this._isActive.getValue()&&(this._isActive=m),this._pickedGeometry.equals(u)||(this._pickedGeometry=u);const y=this.getPickedTargets();l.length=0;for(let e=0,t=y.length;e<t;++e){const t=y[e].pickedPoint;for(let e=0,i=t.length;e<i;++e)l.push(t[e])}this._pickedPoint.equals(l)||(this._pickedPoint=l);break}}}z.prototype.process.call(this)}})()}),Object.defineProperties(de,{typeName:{value:"PointPickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const ge=de;y().add("PointPickSensor","x_ite/Components/Picking/PointPickSensor",ge);const ue=ge;function me(e){z.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new he}Object.assign(Object.setPrototypeOf(me.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{const e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType();for(let i=t.length-1;i>=0;--i)switch(t[i]){case u().Box:case u().Cone:case u().Cylinder:case u().Sphere:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(()=>{const e=new(R()),t=new(R()),i=new(V()),n=new(V());return function(){if(this.pickingGeometryNode){const o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:{for(let r=0,c=o.length;r<c;++r){const c=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(let o=0,r=s.size;o<r;++o){const r=s[o];t.assign(r.geometryNode.getBBox()).multRight(r.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),r.intersected=!0,r.distance=i.distance(n))}}const r=this.getPickedGeometries(),c=!!r.length;r.assign(r.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(r)||(this._pickedGeometry=r);break}case b.GEOMETRY:{const r=this.picker;for(let c=0,a=o.length;c<a;++c){const a=o[c],p=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),r.setChildShape1(a,p.getCompoundShape());for(let o=0,c=s.size;o<c;++o){const c=s[o],a=this.getPickShape(c.geometryNode);t.assign(c.geometryNode.getBBox()).multRight(c.modelMatrix),r.setChildShape2(c.modelMatrix,a.getCompoundShape()),r.contactTest()&&(i.assign(e.center),n.assign(t.center),c.intersected=!0,c.distance=i.distance(n))}}const c=this.getPickedGeometries(),a=!!c.length;c.assign(c.filter((e=>e))),a!==this._isActive.getValue()&&(this._isActive=a),this._pickedGeometry.equals(c)||(this._pickedGeometry=c);break}}}z.prototype.process.call(this)}})()}),Object.defineProperties(me,{typeName:{value:"PrimitivePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const ye=me;y().add("PrimitivePickSensor","x_ite/Components/Picking/PrimitivePickSensor",ye);const _e=ye;function we(e){z.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new he}Object.assign(Object.setPrototypeOf(we.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=oe()(u().X3DGeometryNode,this._pickingGeometry)},process:(()=>{const e=new(R()),t=new(R()),i=new(V()),n=new(V());return function(){if(this.pickingGeometryNode){const o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:{for(let r=0,c=o.length;r<c;++r){const c=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(let o=0,r=s.size;o<r;++o){const r=s[o];t.assign(r.geometryNode.getBBox()).multRight(r.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),r.intersected=!0,r.distance=i.distance(n))}}const r=this.getPickedGeometries(),c=!!r.length;r.assign(r.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(r)||(this._pickedGeometry=r);break}case b.GEOMETRY:{const r=this.picker;for(let c=0,a=o.length;c<a;++c){const a=o[c],p=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),r.setChildShape1(a,p.getCompoundShape());for(let o=0,c=s.size;o<c;++o){const c=s[o],a=this.getPickShape(c.geometryNode);t.assign(c.geometryNode.getBBox()).multRight(c.modelMatrix),r.setChildShape2(c.modelMatrix,a.getCompoundShape()),r.contactTest()&&(i.assign(e.center),n.assign(t.center),c.intersected=!0,c.distance=i.distance(n))}}const c=this.getPickedGeometries(),a=!!c.length;c.assign(c.filter((e=>e))),a!==this._isActive.getValue()&&(this._isActive=a),this._pickedGeometry.equals(c)||(this._pickedGeometry=c);break}}}z.prototype.process.call(this)}})()}),Object.defineProperties(we,{typeName:{value:"VolumePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:3}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const ke=we;y().add("VolumePickSensor","x_ite/Components/Picking/VolumePickSensor",ke);const Se=ke;i().add({name:"Picking",concreteNodes:[W,ie,ue,_e,Se],abstractNodes:[z,$]});const fe=void 0;y().add("Picking","assets/components/Picking",fe)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v9.4.
|
|
1
|
+
/* X_ITE v9.4.4 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
4
|
/***/ 447:
|
|
@@ -80,31 +80,31 @@ var __webpack_exports__ = {};
|
|
|
80
80
|
// UNUSED EXPORTS: default
|
|
81
81
|
|
|
82
82
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
83
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
83
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Components");
|
|
84
84
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
85
85
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
86
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
86
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Fields");
|
|
87
87
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
88
88
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
89
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
89
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
90
90
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
91
91
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
92
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
92
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
93
93
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
94
94
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
|
|
95
|
-
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
95
|
+
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Components/Core/X3DNode");
|
|
96
96
|
var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
|
|
97
97
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
98
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
98
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Base/X3DConstants");
|
|
99
99
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
100
100
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
101
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
101
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Base/X3DCast");
|
|
102
102
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
103
103
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
104
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
104
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Numbers/Matrix4");
|
|
105
105
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
106
106
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
107
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
107
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Namespace");
|
|
108
108
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
109
109
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js
|
|
110
110
|
/*******************************************************************************
|
|
@@ -333,7 +333,7 @@ const __default__ = X3DRigidJointNode;
|
|
|
333
333
|
Namespace_default().add ("X3DRigidJointNode", "x_ite/Components/RigidBodyPhysics/X3DRigidJointNode", __default__);
|
|
334
334
|
/* harmony default export */ const RigidBodyPhysics_X3DRigidJointNode = (__default__);
|
|
335
335
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
336
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
336
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Numbers/Vector3");
|
|
337
337
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
338
338
|
;// CONCATENATED MODULE: ./src/lib/ammojs/ammo.js
|
|
339
339
|
var ammo_dirname = "/";
|
|
@@ -646,10 +646,10 @@ const BallJoint_default_ = BallJoint;
|
|
|
646
646
|
Namespace_default().add ("BallJoint", "x_ite/Components/RigidBodyPhysics/BallJoint", BallJoint_default_);
|
|
647
647
|
/* harmony default export */ const RigidBodyPhysics_BallJoint = (BallJoint_default_);
|
|
648
648
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
649
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
649
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
650
650
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
651
651
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
652
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
652
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
653
653
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
654
654
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js
|
|
655
655
|
/*******************************************************************************
|
|
@@ -824,7 +824,7 @@ const X3DNBodyCollidableNode_default_ = X3DNBodyCollidableNode;
|
|
|
824
824
|
Namespace_default().add ("X3DNBodyCollidableNode", "x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode", X3DNBodyCollidableNode_default_);
|
|
825
825
|
/* harmony default export */ const RigidBodyPhysics_X3DNBodyCollidableNode = (X3DNBodyCollidableNode_default_);
|
|
826
826
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
827
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
827
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Rendering/TraverseType");
|
|
828
828
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
829
829
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js
|
|
830
830
|
/*******************************************************************************
|
|
@@ -1900,7 +1900,7 @@ const CollisionCollection_default_ = CollisionCollection;
|
|
|
1900
1900
|
Namespace_default().add ("CollisionCollection", "x_ite/Components/RigidBodyPhysics/CollisionCollection", CollisionCollection_default_);
|
|
1901
1901
|
/* harmony default export */ const RigidBodyPhysics_CollisionCollection = (CollisionCollection_default_);
|
|
1902
1902
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
1903
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
1903
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
1904
1904
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
1905
1905
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js
|
|
1906
1906
|
/*******************************************************************************
|
|
@@ -2592,7 +2592,7 @@ const Contact_default_ = Contact;
|
|
|
2592
2592
|
Namespace_default().add ("Contact", "x_ite/Components/RigidBodyPhysics/Contact", Contact_default_);
|
|
2593
2593
|
/* harmony default export */ const RigidBodyPhysics_Contact = (Contact_default_);
|
|
2594
2594
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
2595
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
2595
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Numbers/Rotation4");
|
|
2596
2596
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
2597
2597
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js
|
|
2598
2598
|
/*******************************************************************************
|
|
@@ -3054,7 +3054,7 @@ const MotorJoint_default_ = MotorJoint;
|
|
|
3054
3054
|
Namespace_default().add ("MotorJoint", "x_ite/Components/RigidBodyPhysics/MotorJoint", MotorJoint_default_);
|
|
3055
3055
|
/* harmony default export */ const RigidBodyPhysics_MotorJoint = (MotorJoint_default_);
|
|
3056
3056
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Quaternion\")"
|
|
3057
|
-
const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
3057
|
+
const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.4")] .require ("standard/Math/Numbers/Quaternion");
|
|
3058
3058
|
var Quaternion_default = /*#__PURE__*/__webpack_require__.n(Quaternion_namespaceObject);
|
|
3059
3059
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/RigidBody.js
|
|
3060
3060
|
/*******************************************************************************
|