x_ite 8.7.4 → 8.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/.vscode/tasks.json +1 -1
  2. package/dist/assets/components/Annotation.js +13 -13
  3. package/dist/assets/components/Annotation.min.js +1 -1
  4. package/dist/assets/components/CADGeometry.js +13 -13
  5. package/dist/assets/components/CADGeometry.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturing.js +25 -25
  7. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  8. package/dist/assets/components/DIS.js +13 -13
  9. package/dist/assets/components/DIS.min.js +1 -1
  10. package/dist/assets/components/EventUtilities.js +9 -9
  11. package/dist/assets/components/EventUtilities.min.js +1 -1
  12. package/dist/assets/components/Geometry2D.js +21 -23
  13. package/dist/assets/components/Geometry2D.min.js +1 -1
  14. package/dist/assets/components/Geospatial.js +35 -36
  15. package/dist/assets/components/Geospatial.min.js +1 -1
  16. package/dist/assets/components/HAnim.js +18 -18
  17. package/dist/assets/components/HAnim.min.js +1 -1
  18. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  19. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  20. package/dist/assets/components/Layout.js +37 -32
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +24 -24
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +22 -22
  25. package/dist/assets/components/ParticleSystems.min.js +1 -1
  26. package/dist/assets/components/Picking.js +20 -20
  27. package/dist/assets/components/Picking.min.js +1 -1
  28. package/dist/assets/components/RigidBodyPhysics.js +25 -25
  29. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  30. package/dist/assets/components/Scripting.js +28 -28
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +26 -27
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/TextureProjector.js +15 -15
  35. package/dist/assets/components/TextureProjector.min.js +1 -1
  36. package/dist/assets/components/Texturing3D.js +30 -30
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +19 -19
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +9 -9
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/x_ite.css +1 -1
  43. package/dist/x_ite.js +1187 -1686
  44. package/dist/x_ite.min.js +1 -1
  45. package/dist/x_ite.zip +0 -0
  46. package/docs/_config.yml +1 -1
  47. package/docs/_includes/scripts.html +0 -1
  48. package/docs/_posts/components/CADGeometry/QuadSet.md +1 -1
  49. package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +1 -1
  50. package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +1 -1
  51. package/docs/_posts/components/EnvironmentalEffects/Background.md +1 -1
  52. package/docs/_posts/components/EnvironmentalEffects/Fog.md +1 -1
  53. package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +1 -1
  54. package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +1 -1
  55. package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +1 -1
  56. package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +1 -1
  57. package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +1 -1
  58. package/docs/_posts/components/EventUtilities/IntegerSequencer.md +1 -1
  59. package/docs/_posts/components/Followers/ColorChaser.md +1 -1
  60. package/docs/_posts/components/Followers/ColorDamper.md +1 -1
  61. package/docs/_posts/components/Followers/CoordinateChaser.md +1 -1
  62. package/docs/_posts/components/Followers/ScalarChaser.md +1 -1
  63. package/docs/_posts/components/Geometry2D/Arc2D.md +1 -1
  64. package/docs/_posts/components/Geometry2D/ArcClose2D.md +1 -1
  65. package/docs/_posts/components/Geometry2D/Circle2D.md +1 -1
  66. package/docs/_posts/components/Geometry2D/Disk2D.md +1 -1
  67. package/docs/_posts/components/Geometry2D/Polyline2D.md +1 -1
  68. package/docs/_posts/components/Geometry2D/Polypoint2D.md +1 -1
  69. package/docs/_posts/components/Geometry2D/Rectangle2D.md +1 -1
  70. package/docs/_posts/components/Geometry2D/TriangleSet2D.md +1 -1
  71. package/docs/_posts/components/Geometry3D/Box.md +1 -1
  72. package/docs/_posts/components/Geometry3D/Cone.md +1 -1
  73. package/docs/_posts/components/Geometry3D/Cylinder.md +1 -1
  74. package/docs/_posts/components/Geometry3D/ElevationGrid.md +1 -1
  75. package/docs/_posts/components/Geometry3D/Extrusion.md +1 -1
  76. package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
  77. package/docs/_posts/components/Geometry3D/Sphere.md +1 -1
  78. package/docs/_posts/components/Geospatial/GeoElevationGrid.md +1 -1
  79. package/docs/_posts/components/Geospatial/GeoLOD.md +1 -1
  80. package/docs/_posts/components/Geospatial/GeoViewpoint.md +1 -1
  81. package/docs/_posts/components/Grouping/Group.md +1 -1
  82. package/docs/_posts/components/Grouping/Switch.md +1 -1
  83. package/docs/_posts/components/Grouping/Transform.md +1 -1
  84. package/docs/_posts/components/HAnim/HAnimHumanoid.md +1 -1
  85. package/docs/_posts/components/Interpolation/ColorInterpolator.md +1 -1
  86. package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +1 -1
  87. package/docs/_posts/components/Interpolation/OrientationInterpolator.md +1 -1
  88. package/docs/_posts/components/Interpolation/PositionInterpolator.md +1 -1
  89. package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +1 -1
  90. package/docs/_posts/components/Interpolation/ScalarInterpolator.md +1 -1
  91. package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +1 -1
  92. package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +1 -1
  93. package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +1 -1
  94. package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +1 -1
  95. package/docs/_posts/components/Layering/LayerSet.md +1 -1
  96. package/docs/_posts/components/Layering/Viewport.md +1 -1
  97. package/docs/_posts/components/Lighting/DirectionalLight.md +1 -1
  98. package/docs/_posts/components/Lighting/PointLight.md +1 -1
  99. package/docs/_posts/components/Lighting/SpotLight.md +1 -1
  100. package/docs/_posts/components/NURBS/NurbsCurve.md +1 -1
  101. package/docs/_posts/components/NURBS/NurbsPatchSurface.md +1 -1
  102. package/docs/_posts/components/NURBS/NurbsSweptSurface.md +1 -1
  103. package/docs/_posts/components/Navigation/Billboard.md +1 -1
  104. package/docs/_posts/components/Navigation/Collision.md +1 -1
  105. package/docs/_posts/components/Navigation/NavigationInfo.md +1 -1
  106. package/docs/_posts/components/Navigation/OrthoViewpoint.md +1 -1
  107. package/docs/_posts/components/Navigation/Viewpoint.md +1 -1
  108. package/docs/_posts/components/Networking/Anchor.md +1 -1
  109. package/docs/_posts/components/Networking/Inline.md +1 -1
  110. package/docs/_posts/components/Networking/LoadSensor.md +1 -1
  111. package/docs/_posts/components/ParticleSystems/ConeEmitter.md +1 -1
  112. package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +1 -1
  113. package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +1 -1
  114. package/docs/_posts/components/ParticleSystems/ParticleSystem.md +1 -1
  115. package/docs/_posts/components/ParticleSystems/PointEmitter.md +1 -1
  116. package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +1 -1
  117. package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +1 -1
  118. package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +1 -1
  119. package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +1 -1
  120. package/docs/_posts/components/Picking/LinePickSensor.md +1 -1
  121. package/docs/_posts/components/Picking/PointPickSensor.md +1 -1
  122. package/docs/_posts/components/Picking/PrimitivePickSensor.md +1 -1
  123. package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +1 -1
  124. package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +1 -1
  125. package/docs/_posts/components/Rendering/ClipPlane.md +1 -1
  126. package/docs/_posts/components/Rendering/Color.md +1 -1
  127. package/docs/_posts/components/Rendering/ColorRGBA.md +1 -1
  128. package/docs/_posts/components/Rendering/Coordinate.md +1 -1
  129. package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
  130. package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +1 -1
  131. package/docs/_posts/components/Rendering/IndexedTriangleSet.md +1 -1
  132. package/docs/_posts/components/Rendering/LineSet.md +1 -1
  133. package/docs/_posts/components/Rendering/PointSet.md +1 -1
  134. package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +1 -1
  135. package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +1 -1
  136. package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +1 -1
  137. package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +1 -1
  138. package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +1 -1
  139. package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +1 -1
  140. package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +1 -1
  141. package/docs/_posts/components/Shaders/ComposedShader.md +1 -1
  142. package/docs/_posts/components/Shaders/FloatVertexAttribute.md +1 -1
  143. package/docs/_posts/components/Shaders/ShaderPart.md +1 -1
  144. package/docs/_posts/components/Shape/Appearance.md +1 -1
  145. package/docs/_posts/components/Shape/FillProperties.md +1 -1
  146. package/docs/_posts/components/Shape/LineProperties.md +1 -1
  147. package/docs/_posts/components/Shape/Material.md +1 -1
  148. package/docs/_posts/components/Shape/TwoSidedMaterial.md +1 -1
  149. package/docs/_posts/components/Sound/AudioClip.md +1 -1
  150. package/docs/_posts/components/Text/FontStyle.md +1 -1
  151. package/docs/_posts/components/Text/Text.md +1 -1
  152. package/docs/_posts/components/Texturing/ImageTexture.md +1 -1
  153. package/docs/_posts/components/Texturing/MovieTexture.md +1 -1
  154. package/docs/_posts/components/Texturing/MultiTexture.md +1 -1
  155. package/docs/_posts/components/Texturing/PixelTexture.md +1 -1
  156. package/docs/_posts/components/Texturing3D/ImageTexture3D.md +1 -1
  157. package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +1 -1
  158. package/docs/_posts/components/Time/TimeSensor.md +1 -1
  159. package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +1 -1
  160. package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +1 -1
  161. package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +1 -1
  162. package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +1 -1
  163. package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +1 -1
  164. package/docs/_posts/components/VolumeRendering/VolumeData.md +1 -1
  165. package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
  166. package/docs/_posts/custom-shaders.md +1 -1
  167. package/docs/_posts/getting-started.md +7 -2
  168. package/docs/_posts/reference/browser-services.md +6 -0
  169. package/docs/_posts/reference/field-services-and-objects.md +26 -6
  170. package/docs/_posts/tutorials/adding-backgrounds.md +2 -2
  171. package/docs/_posts/tutorials/adding-sound.md +1 -1
  172. package/docs/_posts/tutorials/building-a-x3d-world.md +1 -1
  173. package/docs/_posts/tutorials/building-elevation-grids.md +1 -1
  174. package/docs/_posts/tutorials/building-primitive-shapes.md +2 -2
  175. package/docs/_posts/tutorials/controlling-appearance-with-materials.md +1 -1
  176. package/docs/_posts/tutorials/controlling-detail.md +1 -1
  177. package/docs/_posts/tutorials/hello-world.md +1 -1
  178. package/docs/_posts/tutorials/naming-nodes.md +1 -1
  179. package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +1 -1
  180. package/package.json +3 -3
  181. package/src/lib/jquery.js +13 -0
  182. package/src/standard/Geospatial/UniversalTransverseMercator.js +0 -1
  183. package/src/standard/Math/Algorithms/eigen_decomposition.js +9 -9
  184. package/src/standard/Math/Geometry/Box2.js +37 -24
  185. package/src/standard/Math/Geometry/Box3.js +37 -24
  186. package/src/standard/Math/Geometry/Cylinder3.js +1 -1
  187. package/src/standard/Math/Geometry/Line2.js +1 -1
  188. package/src/standard/Math/Geometry/Line3.js +1 -1
  189. package/src/standard/Math/Geometry/Plane3.js +1 -1
  190. package/src/standard/Math/Geometry/Sphere3.js +14 -14
  191. package/src/standard/Math/Numbers/Color3.js +10 -18
  192. package/src/standard/Math/Numbers/Color4.js +12 -23
  193. package/src/standard/Math/Numbers/Complex.js +59 -58
  194. package/src/standard/Math/Numbers/Matrix2.js +31 -45
  195. package/src/standard/Math/Numbers/Matrix3.js +59 -94
  196. package/src/standard/Math/Numbers/Matrix4.js +73 -114
  197. package/src/standard/Math/Numbers/Quaternion.js +70 -132
  198. package/src/standard/Math/Numbers/Rotation4.js +15 -42
  199. package/src/standard/Math/Numbers/Vector2.js +12 -78
  200. package/src/standard/Math/Numbers/Vector3.js +17 -94
  201. package/src/standard/Math/Numbers/Vector4.js +22 -94
  202. package/src/x_ite/Base/X3DInfoArray.js +9 -7
  203. package/src/x_ite/Base/X3DObject.js +9 -32
  204. package/src/x_ite/Base/X3DObjectArrayField.js +35 -64
  205. package/src/x_ite/Browser/Core/BrowserOptions.js +37 -0
  206. package/src/x_ite/Browser/Core/X3DCoreContext.js +21 -3
  207. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +4 -4
  208. package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +12 -7
  209. package/src/x_ite/Browser/Layout/ScreenText.js +9 -4
  210. package/src/x_ite/Browser/Navigation/ExamineViewer.js +9 -9
  211. package/src/x_ite/Browser/Navigation/LookAtViewer.js +3 -3
  212. package/src/x_ite/Browser/Navigation/WalkViewer.js +2 -2
  213. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +7 -7
  214. package/src/x_ite/Browser/Picking/VolumePicker.js +1 -1
  215. package/src/x_ite/Browser/Shaders/X3DShadersContext.js +0 -1
  216. package/src/x_ite/Browser/Text/X3DTextGeometry.js +2 -3
  217. package/src/x_ite/Browser/VERSION.js +1 -1
  218. package/src/x_ite/Browser/X3DBrowser.js +61 -68
  219. package/src/x_ite/Browser/X3DBrowserContext.js +8 -8
  220. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +1 -1
  221. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +1 -1
  222. package/src/x_ite/Components/Followers/OrientationChaser.js +3 -3
  223. package/src/x_ite/Components/Followers/OrientationDamper.js +3 -3
  224. package/src/x_ite/Components/Geometry2D/Rectangle2D.js +2 -3
  225. package/src/x_ite/Components/Geometry3D/Box.js +3 -10
  226. package/src/x_ite/Components/Geometry3D/Cone.js +1 -1
  227. package/src/x_ite/Components/Geometry3D/Cylinder.js +2 -2
  228. package/src/x_ite/Components/Geometry3D/Extrusion.js +3 -3
  229. package/src/x_ite/Components/Geospatial/GeoViewpoint.js +2 -2
  230. package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +2 -2
  231. package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
  232. package/src/x_ite/Components/Layout/Layout.js +1 -1
  233. package/src/x_ite/Components/Navigation/Billboard.js +1 -1
  234. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +12 -13
  235. package/src/x_ite/Components/Picking/PointPickSensor.js +1 -1
  236. package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +7 -7
  237. package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +1 -1
  238. package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +9 -9
  239. package/src/x_ite/Components/Rendering/X3DGeometryNode.js +1 -1
  240. package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +2 -2
  241. package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +1 -1
  242. package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +1 -1
  243. package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +3 -3
  244. package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +1 -1
  245. package/src/x_ite/Execution/X3DExecutionContext.js +52 -58
  246. package/src/x_ite/Execution/X3DExportedNode.js +13 -11
  247. package/src/x_ite/Execution/X3DImportedNode.js +25 -25
  248. package/src/x_ite/Execution/X3DScene.js +129 -53
  249. package/src/x_ite/Fields/ArrayFields.js +1 -1
  250. package/src/x_ite/Fields/SFColor.js +10 -15
  251. package/src/x_ite/Fields/SFColorRGBA.js +11 -18
  252. package/src/x_ite/Fields/SFImage.js +38 -33
  253. package/src/x_ite/Fields/SFMatrix3.js +1 -3
  254. package/src/x_ite/Fields/SFMatrix4.js +1 -5
  255. package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +6 -5
  256. package/src/x_ite/Fields/SFNodeCache.js +2 -2
  257. package/src/x_ite/Fields/SFRotation.js +14 -21
  258. package/src/x_ite/Fields/SFString.js +0 -1
  259. package/src/x_ite/Fields/SFVec2.js +8 -15
  260. package/src/x_ite/Fields/SFVec3.js +11 -18
  261. package/src/x_ite/Fields/SFVec4.js +12 -23
  262. package/src/x_ite/Fields/SFVecPrototypeTemplate.js +17 -16
  263. package/src/x_ite/Parser/SVGParser.js +3 -3
  264. package/src/x_ite/Parser/X3DOptimizer.js +1 -1
  265. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +26 -27
  266. package/src/x_ite/Prototype/X3DProtoDeclaration.js +16 -15
  267. package/src/x_ite/Rendering/X3DRenderObject.js +3 -3
  268. package/src/x_ite/Routing/X3DRoute.js +26 -25
  269. package/src/x_ite/X3DCanvasElement.js +1 -0
  270. package/docs/assets/js/autoupdate.js +0 -25
  271. package/src/x_ite/Execution/Scene.js +0 -145
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.7.4 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.7.6 */(() => { // 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-8.7.4")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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-8.7.4")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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-8.7.4")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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-8.7.4")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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-8.7.4")] .require ("x_ite/Components/Core/X3DSensorNode");
54
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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-8.7.4")] .require ("x_ite/Rendering/TraverseType");
57
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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-8.7.4")] .require ("x_ite/Base/X3DConstants");
60
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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-8.7.4")] .require ("x_ite/Namespace");
63
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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().set ("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-8.7.4")] .require ("standard/Math/Numbers/Matrix4");
252
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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().set ("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-8.7.4")] .require ("standard/Utility/ObjectCache");
366
+ const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .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
  /*******************************************************************************
@@ -802,13 +802,13 @@ const X3DPickSensorNode_default_ = X3DPickSensorNode;
802
802
  Namespace_default().set ("x_ite/Components/Picking/X3DPickSensorNode", X3DPickSensorNode_default_);
803
803
  /* harmony default export */ const Picking_X3DPickSensorNode = (X3DPickSensorNode_default_);
804
804
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
805
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("standard/Math/Numbers/Vector3");
805
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("standard/Math/Numbers/Vector3");
806
806
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
807
807
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
808
- const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("standard/Math/Geometry/Box3");
808
+ const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("standard/Math/Geometry/Box3");
809
809
  var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
810
810
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Line3\")"
811
- const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("standard/Math/Geometry/Line3");
811
+ const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("standard/Math/Geometry/Line3");
812
812
  var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
813
813
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/LinePickSensor.js
814
814
  /*******************************************************************************
@@ -1144,7 +1144,7 @@ const LinePickSensor_default_ = LinePickSensor;
1144
1144
  Namespace_default().set ("x_ite/Components/Picking/LinePickSensor", LinePickSensor_default_);
1145
1145
  /* harmony default export */ const Picking_LinePickSensor = (LinePickSensor_default_);
1146
1146
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
1147
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
1147
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
1148
1148
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
1149
1149
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickableObject.js
1150
1150
  /*******************************************************************************
@@ -1451,13 +1451,13 @@ const PickableGroup_default_ = PickableGroup;
1451
1451
  Namespace_default().set ("x_ite/Components/Picking/PickableGroup", PickableGroup_default_);
1452
1452
  /* harmony default export */ const Picking_PickableGroup = (PickableGroup_default_);
1453
1453
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
1454
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Base/X3DCast");
1454
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Base/X3DCast");
1455
1455
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
1456
1456
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
1457
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("standard/Math/Numbers/Rotation4");
1457
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("standard/Math/Numbers/Rotation4");
1458
1458
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
1459
1459
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/ammojs/AmmoClass\")"
1460
- const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("lib/ammojs/AmmoClass");
1460
+ const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("lib/ammojs/AmmoClass");
1461
1461
  var AmmoClass_default = /*#__PURE__*/__webpack_require__.n(AmmoClass_namespaceObject);
1462
1462
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/VolumePicker.js
1463
1463
  /*******************************************************************************
@@ -1556,7 +1556,7 @@ VolumePicker .prototype =
1556
1556
  {
1557
1557
  const
1558
1558
  translation = new (Vector3_default()) (0, 0, 0),
1559
- rotation = new (Rotation4_default()) (0, 0, 1, 0),
1559
+ rotation = new (Rotation4_default()) (),
1560
1560
  scale = new (Vector3_default()) (1, 1, 1),
1561
1561
  s = new (AmmoClass_default()).btVector3 (0, 0, 0);
1562
1562
 
@@ -1836,7 +1836,7 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
1836
1836
  transform = new (AmmoClass_default()).btTransform (),
1837
1837
  localScaling = new (AmmoClass_default()).btVector3 (),
1838
1838
  translation = new (Vector3_default()) (0, 0, 0),
1839
- rotation = new (Rotation4_default()) (0, 0, 1, 0),
1839
+ rotation = new (Rotation4_default()) (),
1840
1840
  scale = new (Vector3_default()) (1, 1, 1),
1841
1841
  pickedPoint = new (Fields_default()).MFVec3f ();
1842
1842
 
@@ -1 +1 @@
1
- /* X_ITE v8.7.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-8.7.4")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const c=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(c);const h=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(h);const l=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Rendering/TraverseType");var g=e.n(l);const d=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Base/X3DConstants");var u=e.n(d);const m=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Namespace");var y=e.n(m);let _=0;const f={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().set("x_ite/Browser/Picking/MatchCriterion",f);const w=f;let k=0;const S={BOUNDS:k++,GEOMETRY:k++};y().set("x_ite/Browser/Picking/IntersectionType",S);const T=S;let b=0;const v={ANY:b++,CLOSEST:b++,ALL:b++,ALL_SORTED:b++};y().set("x_ite/Browser/Picking/SortOrder",v);const O=v,N=window[Symbol.for("X_ITE.X3D-8.7.4")].require("standard/Math/Numbers/Matrix4");var C=e.n(N);function G(e,t){this.array=e,t&&(this.compare=t)}G.prototype={compare:function(e,t){return e<t},sort:function(e,t){t-e>1&&this.quicksort(e,t-1)},quicksort:function(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 P=G;y().set("standard/Math/Algorithms/QuickSort",P);const M=P,x=window[Symbol.for("X_ITE.X3D-8.7.4")].require("standard/Utility/ObjectCache");var B,E,D,A=e.n(x)()(C());function I(e,t){return e.distance<t.distance}function F(e){p().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=T.BOUNDS,this.sortOrder=O.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new M(this.pickedTargets,I),this.pickedGeometries=new(o().MFNode)}F.prototype=Object.assign(Object.create(p().prototype),{constructor:F,initialize:function(){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:function(){return this.objectType},getMatchCriterion:function(){return this.matchCriterion},getIntersectionType:function(){return this.intersectionType},getSortOrder:function(){return this.sortOrder},getModelMatrices:function(){return this.modelMatrices},getTargets:function(){return this.targets},getPickShape:function(){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 O.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case O.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case O.ALL:o=0;for(var r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r;break;case O.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:function(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:function(){return this.pickedTargets},set_live__:function(){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__:function(){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__:(D=new Map([["MATCH_ANY",w.MATCH_ANY],["MATCH_EVERY",w.MATCH_EVERY],["MATCH_ONLY_ONE",w.MATCH_ONLY_ONE]]),function(){this.matchCriterion=D.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(E=new Map([["BOUNDS",T.BOUNDS],["GEOMETRY",T.GEOMETRY]]),function(){this.intersectionType=E.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=T.BOUNDS)}),set_sortOrder__:(B=new Map([["ANY",O.ANY],["CLOSEST",O.CLOSEST],["ALL",O.ALL],["ALL_SORTED",O.ALL_SORTED]]),function(){this.sortOrder=B.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=O.CLOSEST)}),set_pickTarget__:function(){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(e){}},traverse:function(e,t){e===g().PICKING&&this.isPickableObject()&&this.modelMatrices.push(A.pop().assign(t.getModelViewMatrix().get()))},collect:function(e,t,i){var n=this.pickTargetNodes;if(i.some((function(e){return n.has(e)}))){var o=this.targets;if(o.size<o.length)var s=o[o.size];else{s={modelMatrix:new(C()),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:function(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)A.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}});const j=F;y().set("x_ite/Components/Picking/X3DPickSensorNode",j);const X=j,L=window[Symbol.for("X_ITE.X3D-8.7.4")].require("standard/Math/Numbers/Vector3");var V=e.n(L);const z=window[Symbol.for("X_ITE.X3D-8.7.4")].require("standard/Math/Geometry/Box3");var R=e.n(z);const q=window[Symbol.for("X_ITE.X3D-8.7.4")].require("standard/Math/Geometry/Line3");var Y,H,U,W,K,Q,Z,J,$,ee,te,ie,ne,oe,se,re,ce=e.n(q);function ae(e){X.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}ae.prototype=Object.assign(Object.create(X.prototype),{constructor:ae,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"LinePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){X.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch(e){}},process:(Y=new(R()),H=new(R()),U=new(V())(0,0,0),W=new(V())(0,0,0),K=new(C()),Q=new(V())(0,0,0),Z=new(V())(0,0,0),J=new(ce())(V().Zero,V().zAxis),$=new(V())(0,0,0),ee=new(V())(0,0,0),te=[],ie=[],ne=new(V())(0,0,0),oe=new(o().MFVec3f),se=new(o().MFVec3f),re=new(o().MFVec3f),function(){if(this.pickingGeometryNode){var e=this.getModelMatrices(),t=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var i=0,n=e.length;i<n;++i){var o=e[i];Y.assign(this.pickingGeometryNode.getBBox()).multRight(o);for(var s=0,r=t.size;s<r;++s){var c=t[s];H.assign(c.geometryNode.getBBox()).multRight(c.modelMatrix),Y.intersectsBox(H)&&(U.assign(Y.center),W.assign(H.center),c.intersected=!0,c.distance=U.distance(W))}}var a=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),a!==this._isActive.getValue()&&(this._isActive=a),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case T.GEOMETRY:for(i=0,n=e.length;i<n;++i)for(o=e[i],Y.assign(this.pickingGeometryNode.getBBox()).multRight(o),s=0,r=t.size;s<r;++s){var h=(c=t[s]).geometryNode,p=this.pickingGeometryNode.getVertices();H.assign(h.getBBox()).multRight(c.modelMatrix),K.assign(c.modelMatrix).inverse().multLeft(o);for(var l=0,g=p.length;l<g;l+=8)if(K.multVecMatrix(Q.set(p[l+0],p[l+1],p[l+2])),K.multVecMatrix(Z.set(p[l+4],p[l+5],p[l+6])),J.setPoints(Q,Z),ie.length=0,h.intersectsLine(J,c.modelMatrix,te,ie))for(var d=0,u=ie.length;d<u;++d){var m=ie[d];$.assign(m.point).subtract(Q),ee.assign(m.point).subtract(Z),$.add(ee).magnitude()<=Q.distance(Z)&&c.intersections.push(m)}c.intersections.length&&(U.assign(Y.center),W.assign(H.center),c.intersected=!0,c.distance=U.distance(W))}var y;a=!!(y=this.getPickedGeometries()).length,y.remove(0,y.length,null),a!==this._isActive.getValue()&&(this._isActive=a),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);var _=this.getPickedTargets();for(oe.length=0,se.length=0,re.length=0,s=0,r=_.length;s<r;++s){var f=_[s].intersections;for(d=0,u=f.length;d<u;++d)s=(m=f[d]).texCoord,ne.set(s.x,s.y,s.z),oe.push(ne),se.push(m.normal),re.push(m.point)}this._pickedTextureCoordinate.equals(oe)||(this._pickedTextureCoordinate=oe),this._pickedNormal.equals(se)||(this._pickedNormal=se),this._pickedPoint.equals(re)||(this._pickedPoint=re)}}X.prototype.process.call(this)})});const he=ae;y().set("x_ite/Components/Picking/LinePickSensor",he);const pe=he,le=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Components/Grouping/X3DGroupingNode");var ge=e.n(le);function de(e){this.addType(u().X3DPickableObject),this.objectType=new Set}de.prototype={constructor:de,initialize:function(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType:function(){return this.objectType},set_objectType__:function(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose:function(){}};const ue=de;y().set("x_ite/Components/Picking/X3DPickableObject",ue);const me=ue;function ye(e){ge().call(this,e),me.call(this,e),this.addType(u().PickableGroup)}ye.prototype=Object.assign(Object.create(ge().prototype),me.prototype,{constructor:ye,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"PickableGroup"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){ge().prototype.initialize.call(this),me.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__:function(){this.set_pickable__()},set_pickable__:function(){this.setPickableObject(!(!this._pickable.getValue()&&!this.getTransformSensors().size))},traverse:function(){const e=new Set;return function(t,i){if(t===g().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const n=this.getBrowser(),o=n.getPickable();if(this.getObjectType().has("ALL"))o.push(!0),ge().prototype.traverse.call(this,t,i),o.pop();else{const s=n.getPickSensors();for(const t of s.at(-1)){if(!t.getObjectType().has("ALL")){let e=0;for(const i of this.getObjectType())if(t.getObjectType().has(i)){++e;break}switch(t.getMatchCriterion()){case w.MATCH_ANY:if(0===e)continue;break;case w.MATCH_EVERY:if(e!==pickSensor.getObjectType().size)continue;break;case w.MATCH_ONLY_ONE:if(1!==e)continue}}e.add(t)}o.push(!0),s.push(e),ge().prototype.traverse.call(this,t,i),s.pop(),o.pop(),e.clear()}}}else ge().prototype.traverse.call(this,t,i)}}(),dispose:function(){me.prototype.dispose.call(this),ge().prototype.dispose.call(this)}});const _e=ye;y().set("x_ite/Components/Picking/PickableGroup",_e);const fe=_e,we=window[Symbol.for("X_ITE.X3D-8.7.4")].require("x_ite/Base/X3DCast");var ke=e.n(we);const Se=window[Symbol.for("X_ITE.X3D-8.7.4")].require("standard/Math/Numbers/Rotation4");var Te=e.n(Se);const be=window[Symbol.for("X_ITE.X3D-8.7.4")].require("lib/ammojs/AmmoClass");var ve=e.n(be);function Oe(){this.broadphase=new(ve().btDbvtBroadphase),this.collisionConfiguration=new(ve().btDefaultCollisionConfiguration),this.dispatcher=new(ve().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(ve().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(ve().btCompoundShape),this.motionState1=new(ve().btDefaultMotionState),this.constructionInfo1=new(ve().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(ve().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(ve().btCompoundShape),this.motionState2=new(ve().btDefaultMotionState),this.constructionInfo2=new(ve().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(ve().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}Oe.prototype={constuctor:Oe,setChildShape1:function(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2:function(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components:function(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components:function(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:function(){const e=new(V())(0,0,0),t=new(Te())(0,0,1,0),i=new(V())(1,1,1),n=new(ve().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:function(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest:function(){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:function(){const e=new(ve().btTransform),t=new(ve().btVector3)(0,0,0),i=new(C());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 Ne=Oe;y().set("x_ite/Browser/Picking/VolumePicker",Ne);const Ce=Ne;function Ge(e){X.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new Ce,this.compoundShapes=[]}var Pe,Me,xe;Ge.prototype=Object.assign(Object.create(X.prototype),{constructor:Ge,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"PointPickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){X.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=ke()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(Pe=new(ve().btVector3)(1,1,1),Me=new(ve().btVector3),xe=new(ve().btTransform),function(){var e=this.compoundShapes;if(this.pickingGeometryNode){var t=this.pickingGeometryNode.getCoord();if(t){for(var i=0,n=t.getSize();i<n;++i)if(i<e.length){var o=e[i],s=t.get1Point(i,o.point);Me.setValue(s.x,s.y,s.z),xe.setOrigin(Me),o.setLocalScaling(Pe),o.updateChildTransform(0,xe)}else{o=new(ve().btCompoundShape);var r=new(ve().btSphereShape)(0);s=t.get1Point(i,new(V())(0,0,0)),o.point=s,Me.setValue(s.x,s.y,s.z),xe.setOrigin(Me),o.addChildShape(xe,r),e.push(o)}e.length=n}else e.length=0}else e.length=0}),process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0),s=new(ve().btTransform),r=new(ve().btVector3),c=new(V())(0,0,0),a=new(Te())(0,0,1,0),h=new(V())(1,1,1),p=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),l=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var g=0,d=o.length;g<d;++g){var u=o[g];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(var m=0,y=l.size;m<y;++m){var _=l[m];t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n))}}var f=!!(N=this.getPickedGeometries()).length;N.remove(0,N.length,null),f!==this._isActive.getValue()&&(this._isActive=f),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);break;case T.GEOMETRY:var w=this.picker,k=this.compoundShapes;for(g=0,d=o.length;g<d;++g){u=o[g];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(c,a,h),w.getTransform(c,a,s),r.setValue(h.x,h.y,h.z);for(var S=0,b=k.length;S<b;++S){var v=k[S];w.setChildShape1Components(s,r,v);for(m=0,y=l.size;m<y;++m){_=l[m];var O=this.getPickShape(_.geometryNode);t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),w.setChildShape2(_.modelMatrix,O.getCompoundShape()),w.contactTest()&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n),_.pickedPoint.push(v.point))}}}var N;f=!!(N=this.getPickedGeometries()).length;N.remove(0,N.length,null),f!==this._isActive.getValue()&&(this._isActive=f),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);var C=this.getPickedTargets();p.length=0;for(m=0,y=C.length;m<y;++m)for(var G=C[m].pickedPoint,P=0,M=G.length;P<M;++P)p.push(G[P]);this._pickedPoint.equals(p)||(this._pickedPoint=p)}}X.prototype.process.call(this)}}()});const Be=Ge;y().set("x_ite/Components/Picking/PointPickSensor",Be);const Ee=Be;function De(e){X.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}De.prototype=Object.assign(Object.create(X.prototype),{constructor:De,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"PrimitivePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){X.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),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(e){}},process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var r=0,c=o.length;r<c;++r){var a=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(a);for(var h=0,p=s.size;h<p;++h){var l=s[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var g=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case T.GEOMETRY:var d=this.picker;for(r=0,c=o.length;r<c;++r){a=o[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),d.setChildShape1(a,u.getCompoundShape());for(h=0,p=s.size;h<p;++h){l=s[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),d.setChildShape2(l.modelMatrix,m.getCompoundShape()),d.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;g=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}X.prototype.process.call(this)}}()});const Ae=De;y().set("x_ite/Components/Picking/PrimitivePickSensor",Ae);const Ie=Ae;function Fe(e){X.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Fe.prototype=Object.assign(Object.create(X.prototype),{constructor:Fe,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"VolumePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){X.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=ke()(u().X3DGeometryNode,this._pickingGeometry)},process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var r=0,c=o.length;r<c;++r){var a=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(a);for(var h=0,p=s.size;h<p;++h){var l=s[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var g=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case T.GEOMETRY:var d=this.picker;for(r=0,c=o.length;r<c;++r){a=o[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),d.setChildShape1(a,u.getCompoundShape());for(h=0,p=s.size;h<p;++h){l=s[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),d.setChildShape2(l.modelMatrix,m.getCompoundShape()),d.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;g=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}X.prototype.process.call(this)}}()});const je=Fe;y().set("x_ite/Components/Picking/VolumePickSensor",je);const Xe=je;i().addComponent({name:"Picking",types:{LinePickSensor:pe,PickableGroup:fe,PointPickSensor:Ee,PrimitivePickSensor:Ie,VolumePickSensor:Xe},abstractTypes:{X3DPickSensorNode:X,X3DPickableObject:me}});const Le=void 0;y().set("assets/components/Picking",Le)})();
1
+ /* X_ITE v8.7.6 */(()=>{"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-8.7.6")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const c=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(c);const h=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(h);const l=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Rendering/TraverseType");var g=e.n(l);const d=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Base/X3DConstants");var u=e.n(d);const m=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Namespace");var y=e.n(m);let _=0;const f={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().set("x_ite/Browser/Picking/MatchCriterion",f);const w=f;let k=0;const S={BOUNDS:k++,GEOMETRY:k++};y().set("x_ite/Browser/Picking/IntersectionType",S);const T=S;let b=0;const v={ANY:b++,CLOSEST:b++,ALL:b++,ALL_SORTED:b++};y().set("x_ite/Browser/Picking/SortOrder",v);const O=v,N=window[Symbol.for("X_ITE.X3D-8.7.6")].require("standard/Math/Numbers/Matrix4");var C=e.n(N);function G(e,t){this.array=e,t&&(this.compare=t)}G.prototype={compare:function(e,t){return e<t},sort:function(e,t){t-e>1&&this.quicksort(e,t-1)},quicksort:function(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 P=G;y().set("standard/Math/Algorithms/QuickSort",P);const M=P,x=window[Symbol.for("X_ITE.X3D-8.7.6")].require("standard/Utility/ObjectCache");var B,E,D,A=e.n(x)()(C());function I(e,t){return e.distance<t.distance}function F(e){p().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=T.BOUNDS,this.sortOrder=O.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new M(this.pickedTargets,I),this.pickedGeometries=new(o().MFNode)}F.prototype=Object.assign(Object.create(p().prototype),{constructor:F,initialize:function(){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:function(){return this.objectType},getMatchCriterion:function(){return this.matchCriterion},getIntersectionType:function(){return this.intersectionType},getSortOrder:function(){return this.sortOrder},getModelMatrices:function(){return this.modelMatrices},getTargets:function(){return this.targets},getPickShape:function(){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 O.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case O.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case O.ALL:o=0;for(var r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r;break;case O.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:function(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:function(){return this.pickedTargets},set_live__:function(){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__:function(){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__:(D=new Map([["MATCH_ANY",w.MATCH_ANY],["MATCH_EVERY",w.MATCH_EVERY],["MATCH_ONLY_ONE",w.MATCH_ONLY_ONE]]),function(){this.matchCriterion=D.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(E=new Map([["BOUNDS",T.BOUNDS],["GEOMETRY",T.GEOMETRY]]),function(){this.intersectionType=E.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=T.BOUNDS)}),set_sortOrder__:(B=new Map([["ANY",O.ANY],["CLOSEST",O.CLOSEST],["ALL",O.ALL],["ALL_SORTED",O.ALL_SORTED]]),function(){this.sortOrder=B.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=O.CLOSEST)}),set_pickTarget__:function(){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(e){}},traverse:function(e,t){e===g().PICKING&&this.isPickableObject()&&this.modelMatrices.push(A.pop().assign(t.getModelViewMatrix().get()))},collect:function(e,t,i){var n=this.pickTargetNodes;if(i.some((function(e){return n.has(e)}))){var o=this.targets;if(o.size<o.length)var s=o[o.size];else{s={modelMatrix:new(C()),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:function(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)A.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}});const j=F;y().set("x_ite/Components/Picking/X3DPickSensorNode",j);const X=j,L=window[Symbol.for("X_ITE.X3D-8.7.6")].require("standard/Math/Numbers/Vector3");var V=e.n(L);const z=window[Symbol.for("X_ITE.X3D-8.7.6")].require("standard/Math/Geometry/Box3");var R=e.n(z);const q=window[Symbol.for("X_ITE.X3D-8.7.6")].require("standard/Math/Geometry/Line3");var Y,H,U,W,K,Q,Z,J,$,ee,te,ie,ne,oe,se,re,ce=e.n(q);function ae(e){X.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}ae.prototype=Object.assign(Object.create(X.prototype),{constructor:ae,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"LinePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){X.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch(e){}},process:(Y=new(R()),H=new(R()),U=new(V())(0,0,0),W=new(V())(0,0,0),K=new(C()),Q=new(V())(0,0,0),Z=new(V())(0,0,0),J=new(ce())(V().Zero,V().zAxis),$=new(V())(0,0,0),ee=new(V())(0,0,0),te=[],ie=[],ne=new(V())(0,0,0),oe=new(o().MFVec3f),se=new(o().MFVec3f),re=new(o().MFVec3f),function(){if(this.pickingGeometryNode){var e=this.getModelMatrices(),t=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var i=0,n=e.length;i<n;++i){var o=e[i];Y.assign(this.pickingGeometryNode.getBBox()).multRight(o);for(var s=0,r=t.size;s<r;++s){var c=t[s];H.assign(c.geometryNode.getBBox()).multRight(c.modelMatrix),Y.intersectsBox(H)&&(U.assign(Y.center),W.assign(H.center),c.intersected=!0,c.distance=U.distance(W))}}var a=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),a!==this._isActive.getValue()&&(this._isActive=a),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case T.GEOMETRY:for(i=0,n=e.length;i<n;++i)for(o=e[i],Y.assign(this.pickingGeometryNode.getBBox()).multRight(o),s=0,r=t.size;s<r;++s){var h=(c=t[s]).geometryNode,p=this.pickingGeometryNode.getVertices();H.assign(h.getBBox()).multRight(c.modelMatrix),K.assign(c.modelMatrix).inverse().multLeft(o);for(var l=0,g=p.length;l<g;l+=8)if(K.multVecMatrix(Q.set(p[l+0],p[l+1],p[l+2])),K.multVecMatrix(Z.set(p[l+4],p[l+5],p[l+6])),J.setPoints(Q,Z),ie.length=0,h.intersectsLine(J,c.modelMatrix,te,ie))for(var d=0,u=ie.length;d<u;++d){var m=ie[d];$.assign(m.point).subtract(Q),ee.assign(m.point).subtract(Z),$.add(ee).magnitude()<=Q.distance(Z)&&c.intersections.push(m)}c.intersections.length&&(U.assign(Y.center),W.assign(H.center),c.intersected=!0,c.distance=U.distance(W))}var y;a=!!(y=this.getPickedGeometries()).length,y.remove(0,y.length,null),a!==this._isActive.getValue()&&(this._isActive=a),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);var _=this.getPickedTargets();for(oe.length=0,se.length=0,re.length=0,s=0,r=_.length;s<r;++s){var f=_[s].intersections;for(d=0,u=f.length;d<u;++d)s=(m=f[d]).texCoord,ne.set(s.x,s.y,s.z),oe.push(ne),se.push(m.normal),re.push(m.point)}this._pickedTextureCoordinate.equals(oe)||(this._pickedTextureCoordinate=oe),this._pickedNormal.equals(se)||(this._pickedNormal=se),this._pickedPoint.equals(re)||(this._pickedPoint=re)}}X.prototype.process.call(this)})});const he=ae;y().set("x_ite/Components/Picking/LinePickSensor",he);const pe=he,le=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Components/Grouping/X3DGroupingNode");var ge=e.n(le);function de(e){this.addType(u().X3DPickableObject),this.objectType=new Set}de.prototype={constructor:de,initialize:function(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType:function(){return this.objectType},set_objectType__:function(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose:function(){}};const ue=de;y().set("x_ite/Components/Picking/X3DPickableObject",ue);const me=ue;function ye(e){ge().call(this,e),me.call(this,e),this.addType(u().PickableGroup)}ye.prototype=Object.assign(Object.create(ge().prototype),me.prototype,{constructor:ye,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"PickableGroup"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){ge().prototype.initialize.call(this),me.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__:function(){this.set_pickable__()},set_pickable__:function(){this.setPickableObject(!(!this._pickable.getValue()&&!this.getTransformSensors().size))},traverse:function(){const e=new Set;return function(t,i){if(t===g().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const n=this.getBrowser(),o=n.getPickable();if(this.getObjectType().has("ALL"))o.push(!0),ge().prototype.traverse.call(this,t,i),o.pop();else{const s=n.getPickSensors();for(const t of s.at(-1)){if(!t.getObjectType().has("ALL")){let e=0;for(const i of this.getObjectType())if(t.getObjectType().has(i)){++e;break}switch(t.getMatchCriterion()){case w.MATCH_ANY:if(0===e)continue;break;case w.MATCH_EVERY:if(e!==pickSensor.getObjectType().size)continue;break;case w.MATCH_ONLY_ONE:if(1!==e)continue}}e.add(t)}o.push(!0),s.push(e),ge().prototype.traverse.call(this,t,i),s.pop(),o.pop(),e.clear()}}}else ge().prototype.traverse.call(this,t,i)}}(),dispose:function(){me.prototype.dispose.call(this),ge().prototype.dispose.call(this)}});const _e=ye;y().set("x_ite/Components/Picking/PickableGroup",_e);const fe=_e,we=window[Symbol.for("X_ITE.X3D-8.7.6")].require("x_ite/Base/X3DCast");var ke=e.n(we);const Se=window[Symbol.for("X_ITE.X3D-8.7.6")].require("standard/Math/Numbers/Rotation4");var Te=e.n(Se);const be=window[Symbol.for("X_ITE.X3D-8.7.6")].require("lib/ammojs/AmmoClass");var ve=e.n(be);function Oe(){this.broadphase=new(ve().btDbvtBroadphase),this.collisionConfiguration=new(ve().btDefaultCollisionConfiguration),this.dispatcher=new(ve().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(ve().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(ve().btCompoundShape),this.motionState1=new(ve().btDefaultMotionState),this.constructionInfo1=new(ve().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(ve().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(ve().btCompoundShape),this.motionState2=new(ve().btDefaultMotionState),this.constructionInfo2=new(ve().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(ve().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}Oe.prototype={constuctor:Oe,setChildShape1:function(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2:function(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components:function(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components:function(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:function(){const e=new(V())(0,0,0),t=new(Te()),i=new(V())(1,1,1),n=new(ve().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:function(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest:function(){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:function(){const e=new(ve().btTransform),t=new(ve().btVector3)(0,0,0),i=new(C());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 Ne=Oe;y().set("x_ite/Browser/Picking/VolumePicker",Ne);const Ce=Ne;function Ge(e){X.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new Ce,this.compoundShapes=[]}var Pe,Me,xe;Ge.prototype=Object.assign(Object.create(X.prototype),{constructor:Ge,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"PointPickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){X.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=ke()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(Pe=new(ve().btVector3)(1,1,1),Me=new(ve().btVector3),xe=new(ve().btTransform),function(){var e=this.compoundShapes;if(this.pickingGeometryNode){var t=this.pickingGeometryNode.getCoord();if(t){for(var i=0,n=t.getSize();i<n;++i)if(i<e.length){var o=e[i],s=t.get1Point(i,o.point);Me.setValue(s.x,s.y,s.z),xe.setOrigin(Me),o.setLocalScaling(Pe),o.updateChildTransform(0,xe)}else{o=new(ve().btCompoundShape);var r=new(ve().btSphereShape)(0);s=t.get1Point(i,new(V())(0,0,0)),o.point=s,Me.setValue(s.x,s.y,s.z),xe.setOrigin(Me),o.addChildShape(xe,r),e.push(o)}e.length=n}else e.length=0}else e.length=0}),process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0),s=new(ve().btTransform),r=new(ve().btVector3),c=new(V())(0,0,0),a=new(Te()),h=new(V())(1,1,1),p=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),l=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var g=0,d=o.length;g<d;++g){var u=o[g];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(var m=0,y=l.size;m<y;++m){var _=l[m];t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n))}}var f=!!(N=this.getPickedGeometries()).length;N.remove(0,N.length,null),f!==this._isActive.getValue()&&(this._isActive=f),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);break;case T.GEOMETRY:var w=this.picker,k=this.compoundShapes;for(g=0,d=o.length;g<d;++g){u=o[g];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(c,a,h),w.getTransform(c,a,s),r.setValue(h.x,h.y,h.z);for(var S=0,b=k.length;S<b;++S){var v=k[S];w.setChildShape1Components(s,r,v);for(m=0,y=l.size;m<y;++m){_=l[m];var O=this.getPickShape(_.geometryNode);t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),w.setChildShape2(_.modelMatrix,O.getCompoundShape()),w.contactTest()&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n),_.pickedPoint.push(v.point))}}}var N;f=!!(N=this.getPickedGeometries()).length;N.remove(0,N.length,null),f!==this._isActive.getValue()&&(this._isActive=f),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);var C=this.getPickedTargets();p.length=0;for(m=0,y=C.length;m<y;++m)for(var G=C[m].pickedPoint,P=0,M=G.length;P<M;++P)p.push(G[P]);this._pickedPoint.equals(p)||(this._pickedPoint=p)}}X.prototype.process.call(this)}}()});const Be=Ge;y().set("x_ite/Components/Picking/PointPickSensor",Be);const Ee=Be;function De(e){X.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}De.prototype=Object.assign(Object.create(X.prototype),{constructor:De,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"PrimitivePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){X.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),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(e){}},process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var r=0,c=o.length;r<c;++r){var a=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(a);for(var h=0,p=s.size;h<p;++h){var l=s[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var g=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case T.GEOMETRY:var d=this.picker;for(r=0,c=o.length;r<c;++r){a=o[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),d.setChildShape1(a,u.getCompoundShape());for(h=0,p=s.size;h<p;++h){l=s[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),d.setChildShape2(l.modelMatrix,m.getCompoundShape()),d.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;g=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}X.prototype.process.call(this)}}()});const Ae=De;y().set("x_ite/Components/Picking/PrimitivePickSensor",Ae);const Ie=Ae;function Fe(e){X.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Fe.prototype=Object.assign(Object.create(X.prototype),{constructor:Fe,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),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))]),getTypeName:function(){return"VolumePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){X.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=ke()(u().X3DGeometryNode,this._pickingGeometry)},process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var r=0,c=o.length;r<c;++r){var a=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(a);for(var h=0,p=s.size;h<p;++h){var l=s[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var g=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case T.GEOMETRY:var d=this.picker;for(r=0,c=o.length;r<c;++r){a=o[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),d.setChildShape1(a,u.getCompoundShape());for(h=0,p=s.size;h<p;++h){l=s[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),d.setChildShape2(l.modelMatrix,m.getCompoundShape()),d.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;g=!!(y=this.getPickedGeometries()).length;y.remove(0,y.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}X.prototype.process.call(this)}}()});const je=Fe;y().set("x_ite/Components/Picking/VolumePickSensor",je);const Xe=je;i().addComponent({name:"Picking",types:{LinePickSensor:pe,PickableGroup:fe,PointPickSensor:Ee,PrimitivePickSensor:Ie,VolumePickSensor:Xe},abstractTypes:{X3DPickSensorNode:X,X3DPickableObject:me}});const Le=void 0;y().set("assets/components/Picking",Le)})();
@@ -1,11 +1,11 @@
1
- /* X_ITE v8.7.4 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.7.6 */(() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
4
  /***/ 355:
5
5
  /***/ ((module) => {
6
6
 
7
7
  "use strict";
8
- module.exports = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("lib/jquery");
8
+ module.exports = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("lib/jquery");
9
9
 
10
10
  /***/ }),
11
11
 
@@ -88,31 +88,31 @@ var __webpack_exports__ = {};
88
88
  // UNUSED EXPORTS: default
89
89
 
90
90
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
91
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Components");
91
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Components");
92
92
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
93
93
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
94
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Fields");
94
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Fields");
95
95
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
96
96
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
97
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Base/X3DFieldDefinition");
97
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Base/X3DFieldDefinition");
98
98
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
99
99
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
100
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Base/FieldDefinitionArray");
100
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Base/FieldDefinitionArray");
101
101
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
102
102
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
103
- const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Components/Core/X3DNode");
103
+ const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Components/Core/X3DNode");
104
104
  var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
105
105
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
106
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Base/X3DConstants");
106
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Base/X3DConstants");
107
107
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
108
108
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
109
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Base/X3DCast");
109
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Base/X3DCast");
110
110
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
111
111
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
112
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("standard/Math/Numbers/Matrix4");
112
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("standard/Math/Numbers/Matrix4");
113
113
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
114
114
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
115
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Namespace");
115
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Namespace");
116
116
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
117
117
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js
118
118
  /*******************************************************************************
@@ -328,7 +328,7 @@ const __default__ = X3DRigidJointNode;
328
328
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/X3DRigidJointNode", __default__);
329
329
  /* harmony default export */ const RigidBodyPhysics_X3DRigidJointNode = (__default__);
330
330
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
331
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("standard/Math/Numbers/Vector3");
331
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("standard/Math/Numbers/Vector3");
332
332
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
333
333
  ;// CONCATENATED MODULE: ./src/lib/ammojs/ammo.js
334
334
  var ammo_dirname = "/";
@@ -633,10 +633,10 @@ const BallJoint_default_ = BallJoint;
633
633
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/BallJoint", BallJoint_default_);
634
634
  /* harmony default export */ const RigidBodyPhysics_BallJoint = (BallJoint_default_);
635
635
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
636
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Components/Core/X3DChildNode");
636
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Components/Core/X3DChildNode");
637
637
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
638
638
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
639
- const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
639
+ const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
640
640
  var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
641
641
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js
642
642
  /*******************************************************************************
@@ -798,7 +798,7 @@ const X3DNBodyCollidableNode_default_ = X3DNBodyCollidableNode;
798
798
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode", X3DNBodyCollidableNode_default_);
799
799
  /* harmony default export */ const RigidBodyPhysics_X3DNBodyCollidableNode = (X3DNBodyCollidableNode_default_);
800
800
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
801
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Rendering/TraverseType");
801
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Rendering/TraverseType");
802
802
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
803
803
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js
804
804
  /*******************************************************************************
@@ -1823,7 +1823,7 @@ const CollisionCollection_default_ = CollisionCollection;
1823
1823
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/CollisionCollection", CollisionCollection_default_);
1824
1824
  /* harmony default export */ const RigidBodyPhysics_CollisionCollection = (CollisionCollection_default_);
1825
1825
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
1826
- const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("x_ite/Components/Core/X3DSensorNode");
1826
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("x_ite/Components/Core/X3DSensorNode");
1827
1827
  var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
1828
1828
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js
1829
1829
  /*******************************************************************************
@@ -2475,7 +2475,7 @@ const Contact_default_ = Contact;
2475
2475
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/Contact", Contact_default_);
2476
2476
  /* harmony default export */ const RigidBodyPhysics_Contact = (Contact_default_);
2477
2477
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
2478
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("standard/Math/Numbers/Rotation4");
2478
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("standard/Math/Numbers/Rotation4");
2479
2479
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
2480
2480
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js
2481
2481
  /* provided dependency */ var DoubleAxisHingeJoint_$ = __webpack_require__(355);
@@ -2704,7 +2704,7 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysi
2704
2704
  localAnchorPoint1 = new (Vector3_default()) (0, 0, 0),
2705
2705
  localAxis1 = new (Vector3_default()) (0, 0, 0),
2706
2706
  difference = new (Matrix4_default()) (),
2707
- rotation = new (Rotation4_default()) (0, 0, 1, 0);
2707
+ rotation = new (Rotation4_default()) ();
2708
2708
 
2709
2709
  return function ()
2710
2710
  {
@@ -2734,7 +2734,7 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysi
2734
2734
  localAnchorPoint2 = new (Vector3_default()) (0, 0, 0),
2735
2735
  localAxis2 = new (Vector3_default()) (0, 0, 0),
2736
2736
  difference = new (Matrix4_default()) (),
2737
- rotation = new (Rotation4_default()) (0, 0, 1, 0);
2737
+ rotation = new (Rotation4_default()) ();
2738
2738
 
2739
2739
  return function ()
2740
2740
  {
@@ -2894,7 +2894,7 @@ const MotorJoint_default_ = MotorJoint;
2894
2894
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/MotorJoint", MotorJoint_default_);
2895
2895
  /* harmony default export */ const RigidBodyPhysics_MotorJoint = (MotorJoint_default_);
2896
2896
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Quaternion\")"
2897
- const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.4")] .require ("standard/Math/Numbers/Quaternion");
2897
+ const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.6")] .require ("standard/Math/Numbers/Quaternion");
2898
2898
  var Quaternion_default = /*#__PURE__*/__webpack_require__.n(Quaternion_namespaceObject);
2899
2899
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/RigidBody.js
2900
2900
  /*******************************************************************************
@@ -3370,7 +3370,7 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3370
3370
  transform = new AmmoClass.btTransform (),
3371
3371
  position = new (Vector3_default()) (0, 0, 0),
3372
3372
  quaternion = new (Quaternion_default()) (0, 0, 0, 1),
3373
- orientation = new (Rotation4_default()) (0, 0, 1, 0),
3373
+ orientation = new (Rotation4_default()) (),
3374
3374
  linearVelocity = new (Vector3_default()) (0, 0, 0),
3375
3375
  angularVelocity = new (Vector3_default()) (0, 0, 0);
3376
3376
 
@@ -4011,7 +4011,7 @@ SingleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysi
4011
4011
  var
4012
4012
  localAnchorPoint2 = new (Vector3_default()) (0, 0, 0),
4013
4013
  difference = new (Matrix4_default()) (),
4014
- rotation = new (Rotation4_default()) (0, 0, 1, 0);
4014
+ rotation = new (Rotation4_default()) ();
4015
4015
 
4016
4016
  return function ()
4017
4017
  {
@@ -4158,7 +4158,7 @@ SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRig
4158
4158
  addJoint: (function ()
4159
4159
  {
4160
4160
  var
4161
- axisRotation = new (Rotation4_default()) (0, 0, 1, 0),
4161
+ axisRotation = new (Rotation4_default()) (),
4162
4162
  matrixA = new (Matrix4_default()) (),
4163
4163
  matrixB = new (Matrix4_default()) (),
4164
4164
  origin = new AmmoClass.btVector3 (0, 0, 0),
@@ -4184,8 +4184,8 @@ SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRig
4184
4184
 
4185
4185
  axisRotation .setFromToVec ((Vector3_default()).xAxis, this ._axis .getValue ());
4186
4186
 
4187
- matrixA .set (this .getBody1 () ._position .getValue (), Rotation4_default().multRight (this .getBody1 () ._orientation .getValue (), axisRotation));
4188
- matrixB .set (this .getBody1 () ._position .getValue (), Rotation4_default().multRight (this .getBody1 () ._orientation .getValue (), axisRotation));
4187
+ matrixA .set (this .getBody1 () ._position .getValue (), this .getBody1 () ._orientation .getValue () .copy () .multRight (axisRotation));
4188
+ matrixB .set (this .getBody1 () ._position .getValue (), this .getBody1 () ._orientation .getValue () .copy () .multRight (axisRotation));
4189
4189
 
4190
4190
  origin .setValue (matrixA [12], matrixA [13], matrixA [14]);
4191
4191