x_ite 9.1.6 → 9.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +14 -14
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +25 -25
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +22 -33
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +33 -33
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +23 -23
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +28 -28
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +23 -23
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +23 -23
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +18 -18
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +17 -17
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +38 -38
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +24 -24
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjection.js +15 -15
  34. package/dist/assets/components/TextureProjection.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +32 -32
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +19 -19
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +15 -9
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +655 -325
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.min.mjs +1 -1
  45. package/dist/x_ite.mjs +655 -325
  46. package/dist/x_ite.zip +0 -0
  47. package/package.json +6 -3
package/dist/x_ite.js CHANGED
@@ -1,4 +1,4 @@
1
- /* X_ITE v9.1.6 */(function webpackUniversalModuleDefinition(root, factory) {
1
+ /* X_ITE v9.1.7 */(function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
3
  module.exports = factory();
4
4
  else if(typeof define === 'function' && define.amd)
@@ -11,10 +11,10 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 965:
14
+ /***/ 986:
15
15
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
16
16
 
17
- /* provided dependency */ var jQuery = __webpack_require__(328);
17
+ /* provided dependency */ var jQuery = __webpack_require__(146);
18
18
  /**
19
19
  * @preserve jquery.fullscreen 1.1.5
20
20
  * https://github.com/code-lts/jquery-fullscreen-plugin
@@ -210,7 +210,7 @@ installFullScreenHandlers();
210
210
 
211
211
  /***/ }),
212
212
 
213
- /***/ 62:
213
+ /***/ 165:
214
214
  /***/ ((module, exports, __webpack_require__) => {
215
215
 
216
216
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -224,7 +224,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
224
224
  (function (factory) {
225
225
  if ( true ) {
226
226
  // AMD. Register as an anonymous module.
227
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(328)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
227
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(146)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
228
228
  __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
229
229
  (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
230
230
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -435,7 +435,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
435
435
 
436
436
  /***/ }),
437
437
 
438
- /***/ 328:
438
+ /***/ 146:
439
439
  /***/ (function(module, exports) {
440
440
 
441
441
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -11159,7 +11159,7 @@ return jQuery;
11159
11159
 
11160
11160
  /***/ }),
11161
11161
 
11162
- /***/ 981:
11162
+ /***/ 509:
11163
11163
  /***/ ((module) => {
11164
11164
 
11165
11165
  /**
@@ -15938,7 +15938,7 @@ if (true) {
15938
15938
 
15939
15939
  /***/ }),
15940
15940
 
15941
- /***/ 583:
15941
+ /***/ 250:
15942
15942
  /***/ (function(__unused_webpack_module, exports) {
15943
15943
 
15944
15944
 
@@ -19183,7 +19183,7 @@ if (true) {
19183
19183
 
19184
19184
  /***/ }),
19185
19185
 
19186
- /***/ 296:
19186
+ /***/ 274:
19187
19187
  /***/ (function(module, exports) {
19188
19188
 
19189
19189
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
20311
20311
  }
20312
20312
  else
20313
20313
  {
20314
- const X3D = window [Symbol .for ("X_ITE.X3D-9.1.6")];
20314
+ const X3D = window [Symbol .for ("X_ITE.X3D-9.1.7")];
20315
20315
 
20316
20316
  if (X3D)
20317
20317
  X3D [name] = module;
@@ -34251,7 +34251,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
34251
34251
  x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
34252
34252
  /* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
34253
34253
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
34254
- /* provided dependency */ var $ = __webpack_require__(328);
34254
+ /* provided dependency */ var $ = __webpack_require__(146);
34255
34255
  /*******************************************************************************
34256
34256
  *
34257
34257
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34388,7 +34388,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
34388
34388
  *
34389
34389
  ******************************************************************************/
34390
34390
 
34391
- const BROWSER_VERSION_default_ = "9.1.6";
34391
+ const BROWSER_VERSION_default_ = "9.1.7";
34392
34392
  ;
34393
34393
 
34394
34394
  x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
@@ -37219,12 +37219,12 @@ function X3DImportedNode (executionContext, inlineNode, exportedName, importedNa
37219
37219
  {
37220
37220
  Core_X3DNode .call (this, executionContext);
37221
37221
 
37222
- this [_inlineNode] = inlineNode;
37222
+ this [_inlineNode] = Fields_SFNodeCache .get (inlineNode);
37223
37223
  this [_exportedName] = exportedName;
37224
37224
  this [_importedName] = importedName;
37225
37225
  this [_routes] = new Set ();
37226
37226
 
37227
- this [_inlineNode] ._loadState .addInterest ("set_loadState__", this);
37227
+ this .getInlineNode () ._loadState .addInterest ("set_loadState__", this);
37228
37228
  }
37229
37229
 
37230
37230
  // Must be of type X3DNode, to get routes work.
@@ -37232,7 +37232,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
37232
37232
  {
37233
37233
  getInlineNode ()
37234
37234
  {
37235
- return this [_inlineNode];
37235
+ return this [_inlineNode] .getValue ();
37236
37236
  },
37237
37237
  getExportedName ()
37238
37238
  {
@@ -37240,7 +37240,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
37240
37240
  },
37241
37241
  getExportedNode ()
37242
37242
  {
37243
- return this [_inlineNode] .getInternalScene () .getExportedNode (this [_exportedName]) .getValue ();
37243
+ return this .getInlineNode () .getInternalScene () .getExportedNode (this [_exportedName]) .getValue ();
37244
37244
  },
37245
37245
  getImportedName ()
37246
37246
  {
@@ -37274,7 +37274,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
37274
37274
 
37275
37275
  // Try to resolve source or destination node routes.
37276
37276
 
37277
- if (this [_inlineNode] .checkLoadState () === Base_X3DConstants .COMPLETE_STATE)
37277
+ if (this .getInlineNode () .checkLoadState () === Base_X3DConstants .COMPLETE_STATE)
37278
37278
  this .resolveRoute (route);
37279
37279
  },
37280
37280
  resolveRoute (route)
@@ -37328,7 +37328,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
37328
37328
  },
37329
37329
  set_loadState__ ()
37330
37330
  {
37331
- switch (this [_inlineNode] .checkLoadState ())
37331
+ switch (this .getInlineNode () .checkLoadState ())
37332
37332
  {
37333
37333
  case Base_X3DConstants .NOT_STARTED_STATE:
37334
37334
  case Base_X3DConstants .FAILED_STATE:
@@ -37676,7 +37676,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
37676
37676
  },
37677
37677
  dispose ()
37678
37678
  {
37679
- this [_inlineNode] ._loadState .removeInterest ("set_loadState__", this);
37679
+ this .getInlineNode () ._loadState .removeInterest ("set_loadState__", this);
37680
37680
 
37681
37681
  this .deleteRoutes ();
37682
37682
 
@@ -37693,7 +37693,7 @@ Object .defineProperties (X3DImportedNode .prototype,
37693
37693
  {
37694
37694
  get ()
37695
37695
  {
37696
- return Fields_SFNodeCache .get (this [_inlineNode]);
37696
+ return this [_inlineNode];
37697
37697
  },
37698
37698
  enumerable: true,
37699
37699
  },
@@ -37709,7 +37709,7 @@ Object .defineProperties (X3DImportedNode .prototype,
37709
37709
  {
37710
37710
  get ()
37711
37711
  {
37712
- return this [_inlineNode] .getInternalScene () .getExportedNode (this [_exportedName]);
37712
+ return this .getInlineNode () .getInternalScene () .getExportedNode (this [_exportedName]);
37713
37713
  },
37714
37714
  enumerable: true,
37715
37715
  },
@@ -38239,7 +38239,7 @@ const X3DProtoDeclarationNode_default_ = X3DProtoDeclarationNode;
38239
38239
  x_ite_Namespace .add ("X3DProtoDeclarationNode", "x_ite/Prototype/X3DProtoDeclarationNode", X3DProtoDeclarationNode_default_);
38240
38240
  /* harmony default export */ const Prototype_X3DProtoDeclarationNode = (X3DProtoDeclarationNode_default_);
38241
38241
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
38242
- /* provided dependency */ var X3DParser_$ = __webpack_require__(328);
38242
+ /* provided dependency */ var X3DParser_$ = __webpack_require__(146);
38243
38243
  /*******************************************************************************
38244
38244
  *
38245
38245
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39064,7 +39064,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
39064
39064
  x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
39065
39065
  /* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
39066
39066
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
39067
- /* provided dependency */ var VRMLParser_$ = __webpack_require__(328);
39067
+ /* provided dependency */ var VRMLParser_$ = __webpack_require__(146);
39068
39068
  /*******************************************************************************
39069
39069
  *
39070
39070
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41617,7 +41617,7 @@ const VRMLParser_default_ = VRMLParser;
41617
41617
  x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
41618
41618
  /* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
41619
41619
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
41620
- /* provided dependency */ var XMLParser_$ = __webpack_require__(328);
41620
+ /* provided dependency */ var XMLParser_$ = __webpack_require__(146);
41621
41621
  /*******************************************************************************
41622
41622
  *
41623
41623
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43710,7 +43710,7 @@ const URLs_default_ = URLs;
43710
43710
  x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
43711
43711
  /* harmony default export */ const Networking_URLs = (URLs_default_);
43712
43712
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
43713
- /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(328);
43713
+ /* provided dependency */ var GLTF2Parser_$ = __webpack_require__(146);
43714
43714
  /*******************************************************************************
43715
43715
  *
43716
43716
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47011,7 +47011,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
47011
47011
  x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
47012
47012
  /* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
47013
47013
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
47014
- /* provided dependency */ var GLB2Parser_$ = __webpack_require__(328);
47014
+ /* provided dependency */ var GLB2Parser_$ = __webpack_require__(146);
47015
47015
  /*******************************************************************************
47016
47016
  *
47017
47017
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47163,7 +47163,7 @@ const GLB2Parser_default_ = GLB2Parser;
47163
47163
  x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
47164
47164
  /* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
47165
47165
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
47166
- /* provided dependency */ var OBJParser_$ = __webpack_require__(328);
47166
+ /* provided dependency */ var OBJParser_$ = __webpack_require__(146);
47167
47167
  /*******************************************************************************
47168
47168
  *
47169
47169
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50518,8 +50518,8 @@ const MatrixStack_default_ = MatrixStack;
50518
50518
  x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
50519
50519
  /* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
50520
50520
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
50521
- /* provided dependency */ var SVGParser_$ = __webpack_require__(328);
50522
- /* provided dependency */ var libtess = __webpack_require__(981);
50521
+ /* provided dependency */ var SVGParser_$ = __webpack_require__(146);
50522
+ /* provided dependency */ var libtess = __webpack_require__(509);
50523
50523
  /*******************************************************************************
50524
50524
  *
50525
50525
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53287,7 +53287,7 @@ const SVGParser_default_ = SVGParser;
53287
53287
  x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
53288
53288
  /* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
53289
53289
  ;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
53290
- /* provided dependency */ var GoldenGate_$ = __webpack_require__(328);
53290
+ /* provided dependency */ var GoldenGate_$ = __webpack_require__(146);
53291
53291
  /*******************************************************************************
53292
53292
  *
53293
53293
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -53624,7 +53624,7 @@ const Plane3_default_ = Plane3;
53624
53624
  x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
53625
53625
  /* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
53626
53626
  ;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
53627
- /* provided dependency */ var Triangle3_libtess = __webpack_require__(981);
53627
+ /* provided dependency */ var Triangle3_libtess = __webpack_require__(509);
53628
53628
  /*******************************************************************************
53629
53629
  *
53630
53630
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -61131,7 +61131,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
61131
61131
  x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
61132
61132
  /* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
61133
61133
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
61134
- /* provided dependency */ var ImageTexture_$ = __webpack_require__(328);
61134
+ /* provided dependency */ var ImageTexture_$ = __webpack_require__(146);
61135
61135
  /*******************************************************************************
61136
61136
  *
61137
61137
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -65718,7 +65718,7 @@ const X3DWorld_default_ = X3DWorld;
65718
65718
  x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
65719
65719
  /* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
65720
65720
  ;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
65721
- /* provided dependency */ var FileLoader_$ = __webpack_require__(328);
65721
+ /* provided dependency */ var FileLoader_$ = __webpack_require__(146);
65722
65722
  /*******************************************************************************
65723
65723
  *
65724
65724
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66712,9 +66712,9 @@ function X3DRoute (executionContext, sourceNode, sourceField, destinationNode, d
66712
66712
  Base_X3DObject .call (this, executionContext);
66713
66713
 
66714
66714
  this [X3DRoute_executionContext] = executionContext;
66715
- this [_sourceNode] = sourceNode;
66715
+ this [_sourceNode] = Fields_SFNodeCache .get (sourceNode);
66716
66716
  this [_sourceField] = sourceField;
66717
- this [_destinationNode] = destinationNode;
66717
+ this [_destinationNode] = Fields_SFNodeCache .get (destinationNode);
66718
66718
  this [_destinationField] = destinationField;
66719
66719
 
66720
66720
  // Must connect in every context, to make X3DBaseNode.hasRoutes work.
@@ -66738,7 +66738,7 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66738
66738
  getSourceNode ()
66739
66739
  {
66740
66740
  /// SAI
66741
- return this [_sourceNode];
66741
+ return this [_sourceNode] .getValue ();
66742
66742
  },
66743
66743
  getSourceField ()
66744
66744
  {
@@ -66748,7 +66748,7 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66748
66748
  getDestinationNode ()
66749
66749
  {
66750
66750
  /// SAI
66751
- return this [_destinationNode];
66751
+ return this [_destinationNode] .getValue ();
66752
66752
  },
66753
66753
  getDestinationField ()
66754
66754
  {
@@ -66765,8 +66765,8 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66765
66765
  toVRMLStream (generator)
66766
66766
  {
66767
66767
  const
66768
- sourceNodeName = generator .LocalName (this [_sourceNode]),
66769
- destinationNodeName = generator .LocalName (this [_destinationNode]);
66768
+ sourceNodeName = generator .LocalName (this .getSourceNode ()),
66769
+ destinationNodeName = generator .LocalName (this .getDestinationNode ());
66770
66770
 
66771
66771
  generator .string += generator .Indent ();
66772
66772
  generator .string += "ROUTE";
@@ -66792,8 +66792,8 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66792
66792
  toXMLStream (generator)
66793
66793
  {
66794
66794
  const
66795
- sourceNodeName = generator .LocalName (this [_sourceNode]),
66796
- destinationNodeName = generator .LocalName (this [_destinationNode]);
66795
+ sourceNodeName = generator .LocalName (this .getSourceNode ()),
66796
+ destinationNodeName = generator .LocalName (this .getDestinationNode ());
66797
66797
 
66798
66798
  generator .string += generator .Indent ();
66799
66799
  generator .string += "<ROUTE";
@@ -66826,8 +66826,8 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
66826
66826
  toJSONStream (generator)
66827
66827
  {
66828
66828
  const
66829
- sourceNodeName = generator .LocalName (this [_sourceNode]),
66830
- destinationNodeName = generator .LocalName (this [_destinationNode]);
66829
+ sourceNodeName = generator .LocalName (this .getSourceNode ()),
66830
+ destinationNodeName = generator .LocalName (this .getDestinationNode ());
66831
66831
 
66832
66832
  generator .string += generator .Indent ();
66833
66833
  generator .string += '{';
@@ -66917,7 +66917,7 @@ Object .defineProperties (X3DRoute .prototype,
66917
66917
  {
66918
66918
  get ()
66919
66919
  {
66920
- return Fields_SFNodeCache .get (this [_sourceNode]);
66920
+ return this [_sourceNode];
66921
66921
  },
66922
66922
  enumerable: true,
66923
66923
  },
@@ -66933,7 +66933,7 @@ Object .defineProperties (X3DRoute .prototype,
66933
66933
  {
66934
66934
  get ()
66935
66935
  {
66936
- return Fields_SFNodeCache .get (this [_destinationNode]);
66936
+ return this [_destinationNode];
66937
66937
  },
66938
66938
  enumerable: true,
66939
66939
  },
@@ -67424,7 +67424,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
67424
67424
  const importedNode = this [_importedNodes] .get (importedName);
67425
67425
 
67426
67426
  if (importedNode)
67427
- return Fields_SFNodeCache .get (importedNode .getExportedNode ());
67427
+ return importedNode .exportedNode;
67428
67428
 
67429
67429
  throw new Error (`Imported node '${importedName}' not found.`);
67430
67430
  },
@@ -73739,7 +73739,6 @@ x_ite_Namespace .add ("Box", "x_ite/Components/Geometry3D/Box", Box_default_);
73739
73739
 
73740
73740
 
73741
73741
 
73742
-
73743
73742
  function Cone (executionContext)
73744
73743
  {
73745
73744
  Rendering_X3DGeometryNode .call (this, executionContext);
@@ -73765,105 +73764,63 @@ Object .assign (Object .setPrototypeOf (Cone .prototype, Rendering_X3DGeometryNo
73765
73764
  {
73766
73765
  const
73767
73766
  options = this .getBrowser () .getConeOptions (),
73768
- xDimension = options ._xDimension .getValue (),
73769
- height = this ._height .getValue (),
73770
- bottomRadius = this ._bottomRadius .getValue (),
73767
+ height = Math .abs (this ._height .getValue ()),
73768
+ height1_2 = height / 2,
73769
+ bottomRadius = Math .abs (this ._bottomRadius .getValue ()),
73771
73770
  texCoordArray = this .getTexCoords (),
73772
73771
  normalArray = this .getNormals (),
73773
73772
  vertexArray = this .getVertices ();
73774
73773
 
73775
73774
  this .getMultiTexCoords () .push (texCoordArray);
73776
73775
 
73777
- const
73778
- y1 = height / 2,
73779
- y2 = -y1,
73780
- nz = Numbers_Complex .Polar (1, -Math .PI / 2 + Math .atan (bottomRadius / height));
73781
-
73782
73776
  if (this ._side .getValue ())
73783
73777
  {
73784
- for (let i = 0; i < xDimension; ++ i)
73785
- {
73786
- const
73787
- u1 = (i + 0.5) / xDimension,
73788
- theta1 = 2 * Math .PI * u1,
73789
- n1 = Numbers_Complex .Polar (nz .imag, theta1);
73790
-
73791
- const
73792
- u2 = i / xDimension,
73793
- theta2 = 2 * Math .PI * u2,
73794
- p2 = Numbers_Complex .Polar (-bottomRadius, theta2),
73795
- n2 = Numbers_Complex .Polar (nz .imag, theta2);
73796
-
73797
- const
73798
- u3 = (i + 1) / xDimension,
73799
- theta3 = 2 * Math .PI * u3,
73800
- p3 = Numbers_Complex .Polar (-bottomRadius, theta3),
73801
- n3 = Numbers_Complex .Polar (nz .imag, theta3);
73778
+ const
73779
+ geometry = options .getSideGeometry (),
73780
+ defaultNormals = geometry .getNormals (),
73781
+ defaultVertices = geometry .getVertices (),
73782
+ v1 = new Numbers_Vector3 (0, 0, 0),
73783
+ rz = new Numbers_Rotation4 (1, 0, 0, -Math .atan (bottomRadius / height)),
73784
+ rx = new Numbers_Rotation4 ();
73802
73785
 
73803
- /* p1
73804
- * / \
73805
- * / \
73806
- * p2 -- p3
73807
- */
73786
+ for (const t of geometry .getMultiTexCoords () [0])
73787
+ texCoordArray .push (t);
73808
73788
 
73809
- // p1
73810
- texCoordArray .push (u1, 1, 0, 1);
73811
- normalArray .push (n1 .imag, nz .real, n1 .real);
73812
- vertexArray .push (0, y1, 0, 1);
73789
+ for (let i = 0, length = defaultNormals .length; i < length; i += 3)
73790
+ {
73791
+ v1 .set (defaultNormals [i], 0, defaultNormals [i + 2]),
73792
+ rx .setFromToVec (Numbers_Vector3 .zAxis, v1) .multLeft (rz) .multVecRot (v1 .set (0, 0, 1));
73813
73793
 
73814
- // p2
73815
- texCoordArray .push (u2, 0, 0, 1);
73816
- normalArray .push (n2 .imag, nz .real, n2 .real);
73817
- vertexArray .push (p2 .imag, y2, p2 .real, 1);
73794
+ normalArray .push (... v1);
73795
+ }
73818
73796
 
73819
- // p3
73820
- texCoordArray .push (u3, 0, 0, 1);
73821
- normalArray .push (n3 .imag , nz .real, n3 .real);
73822
- vertexArray .push (p3 .imag, y2, p3 .real, 1);
73797
+ for (let i = 0, length = defaultVertices .length; i < length; i += 4)
73798
+ {
73799
+ vertexArray .push (bottomRadius * defaultVertices [i],
73800
+ height1_2 * defaultVertices [i + 1],
73801
+ bottomRadius * defaultVertices [i + 2],
73802
+ 1);
73823
73803
  }
73824
73804
  }
73825
73805
 
73826
73806
  if (this ._bottom .getValue ())
73827
73807
  {
73828
73808
  const
73829
- texCoord = [ ],
73830
- points = [ ];
73809
+ geometry = options .getBottomGeometry (),
73810
+ defaultVertices = geometry .getVertices ();
73831
73811
 
73832
- for (let i = xDimension - 1; i > -1; -- i)
73833
- {
73834
- const
73835
- u = i / xDimension,
73836
- theta = 2 * Math .PI * u,
73837
- t = Numbers_Complex .Polar (-1, theta),
73838
- p = t .copy () .multiply (bottomRadius);
73812
+ for (const t of geometry .getMultiTexCoords () [0])
73813
+ texCoordArray .push (t);
73839
73814
 
73840
- texCoord .push (new Numbers_Vector2 ((t .imag + 1) / 2, (t .real + 1) / 2));
73841
- points .push (new Numbers_Vector3 (p .imag, y2, p .real));
73842
- }
73843
-
73844
- const
73845
- t0 = texCoord [0],
73846
- p0 = points [0];
73815
+ for (const n of geometry .getNormals ())
73816
+ normalArray .push (n);
73847
73817
 
73848
- for (let i = 1, length = points .length - 1; i < length; ++ i)
73818
+ for (let i = 0, length = defaultVertices .length; i < length; i += 4)
73849
73819
  {
73850
- const
73851
- t1 = texCoord [i],
73852
- t2 = texCoord [i + 1],
73853
- p1 = points [i],
73854
- p2 = points [i + 1];
73855
-
73856
- texCoordArray .push (t0 .x, t0 .y, 0, 1);
73857
- normalArray .push (0, -1, 0);
73858
- vertexArray .push (p0 .x, p0 .y, p0 .z, 1);
73859
-
73860
- texCoordArray .push (t1 .x, t1 .y, 0, 1);
73861
- normalArray .push (0, -1, 0);
73862
- vertexArray .push (p1 .x, p1 .y, p1 .z, 1);
73863
-
73864
- texCoordArray .push (t2 .x, t2 .y, 0, 1);
73865
- normalArray .push (0, -1, 0);
73866
- vertexArray .push (p2 .x, p2 .y, p2 .z, 1);
73820
+ vertexArray .push (bottomRadius * defaultVertices [i],
73821
+ height1_2 * defaultVertices [i + 1],
73822
+ bottomRadius * defaultVertices [i + 2],
73823
+ 1);
73867
73824
  }
73868
73825
  }
73869
73826
 
@@ -73882,7 +73839,7 @@ Object .assign (Object .setPrototypeOf (Cone .prototype, Rendering_X3DGeometryNo
73882
73839
  this .getMin () .set (0, 0, 0);
73883
73840
  this .getMax () .set (0, 0, 0);
73884
73841
  }
73885
- else if (! this ._side .getValue ())
73842
+ else if (!this ._side .getValue ())
73886
73843
  {
73887
73844
  this .getMin () .set (-bottomRadius, y2, -bottomRadius);
73888
73845
  this .getMax () .set ( bottomRadius, y2, bottomRadius);
@@ -74018,157 +73975,74 @@ Object .assign (Object .setPrototypeOf (Cylinder .prototype, Rendering_X3DGeomet
74018
73975
  {
74019
73976
  const
74020
73977
  options = this .getBrowser () .getCylinderOptions (),
74021
- xDimension = options ._xDimension .getValue (),
73978
+ height1_2 = Math .abs (this ._height .getValue ()) / 2,
73979
+ radius = Math .abs (this ._radius .getValue ()),
74022
73980
  texCoordArray = this .getTexCoords (),
74023
73981
  normalArray = this .getNormals (),
74024
73982
  vertexArray = this .getVertices ();
74025
73983
 
74026
73984
  this .getMultiTexCoords () .push (texCoordArray);
74027
73985
 
74028
- const
74029
- radius = this ._radius .getValue (),
74030
- y1 = this ._height .getValue () / 2,
74031
- y2 = -y1;
74032
-
74033
73986
  if (this ._side .getValue ())
74034
73987
  {
74035
- for (let i = 0; i < xDimension; ++ i)
74036
- {
74037
- const
74038
- u1 = i / xDimension,
74039
- theta1 = 2 * Math .PI * u1,
74040
- n1 = Numbers_Complex .Polar (-1, theta1),
74041
- p1 = n1 .copy () .multiply (radius);
74042
-
74043
- const
74044
- u2 = (i + 1) / xDimension,
74045
- theta2 = 2 * Math .PI * u2,
74046
- n2 = Numbers_Complex .Polar (-1, theta2),
74047
- p2 = n2 .copy () .multiply (radius);
74048
-
74049
- // p1 - p4
74050
- // | \ |
74051
- // p2 - p3
74052
-
74053
- // Triangle one
74054
-
74055
- // p1
74056
- texCoordArray .push (u1, 1, 0, 1);
74057
- normalArray .push (n1 .imag, 0, n1 .real);
74058
- vertexArray .push (p1 .imag, y1, p1 .real, 1);
74059
-
74060
- // p2
74061
- texCoordArray .push (u1, 0, 0, 1);
74062
- normalArray .push (n1 .imag, 0, n1 .real);
74063
- vertexArray .push (p1 .imag, y2, p1 .real, 1);
74064
-
74065
- // p3
74066
- texCoordArray .push (u2, 0, 0, 1);
74067
- normalArray .push (n2 .imag, 0, n2 .real);
74068
- vertexArray .push (p2 .imag, y2, p2 .real, 1);
74069
-
74070
- // Triangle two
73988
+ const
73989
+ geometry = options .getSideGeometry (),
73990
+ defaultVertices = geometry .getVertices ();
74071
73991
 
74072
- // p1
74073
- texCoordArray .push (u1, 1, 0, 1);
74074
- normalArray .push (n1 .imag, 0, n1 .real);
74075
- vertexArray .push (p1 .imag, y1, p1 .real, 1);
73992
+ for (const t of geometry .getMultiTexCoords () [0])
73993
+ texCoordArray .push (t);
74076
73994
 
74077
- // p3
74078
- texCoordArray .push (u2, 0, 0, 1);
74079
- normalArray .push (n2 .imag, 0, n2 .real);
74080
- vertexArray .push (p2 .imag, y2, p2 .real, 1);
73995
+ for (const n of geometry .getNormals ())
73996
+ normalArray .push (n);
74081
73997
 
74082
- // p4
74083
- texCoordArray .push (u2, 1, 0, 1);
74084
- normalArray .push (n2 .imag, 0, n2 .real);
74085
- vertexArray .push (p2 .imag, y1, p2 .real, 1);
73998
+ for (let i = 0, length = defaultVertices .length; i < length; i += 4)
73999
+ {
74000
+ vertexArray .push (radius * defaultVertices [i],
74001
+ height1_2 * defaultVertices [i + 1],
74002
+ radius * defaultVertices [i + 2],
74003
+ 1);
74086
74004
  }
74087
74005
  }
74088
74006
 
74089
74007
  if (this ._top .getValue ())
74090
74008
  {
74091
74009
  const
74092
- texCoord = [ ],
74093
- points = [ ];
74010
+ geometry = options .getTopGeometry (),
74011
+ defaultVertices = geometry .getVertices ();
74094
74012
 
74095
- for (let i = 0; i < xDimension; ++ i)
74096
- {
74097
- const
74098
- u = i / xDimension,
74099
- theta = 2 * Math .PI * u,
74100
- t = Numbers_Complex .Polar (-1, theta);
74013
+ for (const t of geometry .getMultiTexCoords () [0])
74014
+ texCoordArray .push (t);
74101
74015
 
74102
- texCoord .push (new Numbers_Vector2 ((t .imag + 1) / 2, -(t .real - 1) / 2));
74103
- points .push (new Numbers_Vector3 (t .imag * radius, y1, t .real * radius));
74104
- }
74105
-
74106
- const
74107
- t0 = texCoord [0],
74108
- p0 = points [0];
74016
+ for (const n of geometry .getNormals ())
74017
+ normalArray .push (n);
74109
74018
 
74110
- for (let i = 1, length = points .length - 1; i < length; ++ i)
74019
+ for (let i = 0, length = defaultVertices .length; i < length; i += 4)
74111
74020
  {
74112
- const
74113
- t1 = texCoord [i],
74114
- t2 = texCoord [i + 1],
74115
- p1 = points [i],
74116
- p2 = points [i + 1];
74117
-
74118
- texCoordArray .push (t0 .x, t0 .y, 0, 1);
74119
- normalArray .push (0, 1, 0);
74120
- vertexArray .push (p0 .x, p0 .y, p0 .z, 1);
74121
-
74122
- texCoordArray .push (t1 .x, t1 .y, 0, 1);
74123
- normalArray .push (0, 1, 0);
74124
- vertexArray .push (p1 .x, p1 .y, p1 .z, 1);
74125
-
74126
- texCoordArray .push (t2 .x, t2 .y, 0, 1);
74127
- normalArray .push (0, 1, 0);
74128
- vertexArray .push (p2 .x, p2 .y, p2 .z, 1);
74021
+ vertexArray .push (radius * defaultVertices [i],
74022
+ height1_2 * defaultVertices [i + 1],
74023
+ radius * defaultVertices [i + 2],
74024
+ 1);
74129
74025
  }
74130
74026
  }
74131
74027
 
74132
74028
  if (this ._bottom .getValue ())
74133
74029
  {
74134
74030
  const
74135
- texCoord = [ ],
74136
- points = [ ];
74031
+ geometry = options .getBottomGeometry (),
74032
+ defaultVertices = geometry .getVertices ();
74137
74033
 
74138
- for (let i = xDimension - 1; i > -1; -- i)
74139
- {
74140
- const
74141
- u = i / xDimension,
74142
- theta = 2 * Math .PI * u,
74143
- t = Numbers_Complex .Polar (-1, theta);
74144
-
74145
- texCoord .push (new Numbers_Vector2 ((t .imag + 1) / 2, (t .real + 1) / 2));
74146
- points .push (new Numbers_Vector3 (t .imag * radius, y2, t .real * radius));
74147
- }
74034
+ for (const t of geometry .getMultiTexCoords () [0])
74035
+ texCoordArray .push (t);
74148
74036
 
74149
- const
74150
- t0 = texCoord [0],
74151
- p0 = points [0];
74037
+ for (const n of geometry .getNormals ())
74038
+ normalArray .push (n);
74152
74039
 
74153
- for (let i = 1, length = points .length - 1; i < length; ++ i)
74040
+ for (let i = 0, length = defaultVertices .length; i < length; i += 4)
74154
74041
  {
74155
- const
74156
- t1 = texCoord [i],
74157
- t2 = texCoord [i + 1],
74158
- p1 = points [i],
74159
- p2 = points [i + 1];
74160
-
74161
- texCoordArray .push (t0 .x, t0 .y, 0, 1);
74162
- normalArray .push (0, -1, 0);
74163
- vertexArray .push (p0 .x, p0 .y, p0 .z, 1);
74164
-
74165
- texCoordArray .push (t1 .x, t1 .y, 0, 1);
74166
- normalArray .push (0, -1, 0);
74167
- vertexArray .push (p1 .x, p1 .y, p1 .z, 1);
74168
-
74169
- texCoordArray .push (t2 .x, t2 .y, 0, 1);
74170
- normalArray .push (0, -1, 0);
74171
- vertexArray .push (p2 .x, p2 .y, p2 .z, 1);
74042
+ vertexArray .push (radius * defaultVertices [i],
74043
+ height1_2 * defaultVertices [i + 1],
74044
+ radius * defaultVertices [i + 2],
74045
+ 1);
74172
74046
  }
74173
74047
  }
74174
74048
 
@@ -74182,19 +74056,19 @@ Object .assign (Object .setPrototypeOf (Cylinder .prototype, Rendering_X3DGeomet
74182
74056
  y1 = this ._height .getValue () / 2,
74183
74057
  y2 = -y1;
74184
74058
 
74185
- if (! this ._top .getValue () && ! this ._side .getValue () && ! this ._bottom .getValue ())
74059
+ if (!this ._top .getValue () && !this ._side .getValue () && !this ._bottom .getValue ())
74186
74060
  {
74187
74061
  this .getMin () .set (0, 0, 0);
74188
74062
  this .getMax () .set (0, 0, 0);
74189
74063
  }
74190
74064
 
74191
- else if (! this ._top .getValue () && ! this ._side .getValue ())
74065
+ else if (!this ._top .getValue () && !this ._side .getValue ())
74192
74066
  {
74193
74067
  this .getMin () .set (-radius, y2, -radius);
74194
74068
  this .getMax () .set ( radius, y2, radius);
74195
74069
  }
74196
74070
 
74197
- else if (! this ._bottom .getValue () && ! this ._side .getValue ())
74071
+ else if (!this ._bottom .getValue () && !this ._side .getValue ())
74198
74072
  {
74199
74073
  this .getMin () .set (-radius, y1, -radius);
74200
74074
  this .getMax () .set ( radius, y1, radius);
@@ -89534,7 +89408,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
89534
89408
  x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
89535
89409
  /* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
89536
89410
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
89537
- /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(328);
89411
+ /* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(146);
89538
89412
  /*******************************************************************************
89539
89413
  *
89540
89414
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95175,7 +95049,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
95175
95049
  x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
95176
95050
  /* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
95177
95051
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
95178
- /* provided dependency */ var ShaderPart_$ = __webpack_require__(328);
95052
+ /* provided dependency */ var ShaderPart_$ = __webpack_require__(146);
95179
95053
  /*******************************************************************************
95180
95054
  *
95181
95055
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95832,7 +95706,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
95832
95706
  x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
95833
95707
  /* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
95834
95708
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
95835
- /* provided dependency */ var Appearance_$ = __webpack_require__(328);
95709
+ /* provided dependency */ var Appearance_$ = __webpack_require__(146);
95836
95710
  /*******************************************************************************
95837
95711
  *
95838
95712
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99250,7 +99124,7 @@ const Components_Shape_default_ = {
99250
99124
  x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
99251
99125
  /* harmony default export */ const Components_Shape = (Components_Shape_default_);
99252
99126
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
99253
- /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(328);
99127
+ /* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(146);
99254
99128
  /*******************************************************************************
99255
99129
  *
99256
99130
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -99890,7 +99764,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
99890
99764
  x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
99891
99765
  /* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
99892
99766
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
99893
- /* provided dependency */ var AudioClip_$ = __webpack_require__(328);
99767
+ /* provided dependency */ var AudioClip_$ = __webpack_require__(146);
99894
99768
  /*******************************************************************************
99895
99769
  *
99896
99770
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100192,7 +100066,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
100192
100066
  x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
100193
100067
  /* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
100194
100068
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
100195
- /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(328);
100069
+ /* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(146);
100196
100070
  /*******************************************************************************
100197
100071
  *
100198
100072
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101842,7 +101716,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
101842
101716
  x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
101843
101717
  /* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
101844
101718
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
101845
- /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(328);
101719
+ /* provided dependency */ var MicrophoneSource_$ = __webpack_require__(146);
101846
101720
  /*******************************************************************************
101847
101721
  *
101848
101722
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -103511,8 +103385,8 @@ const GifMedia_default_ = GifMedia;
103511
103385
  x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
103512
103386
  /* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
103513
103387
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
103514
- /* provided dependency */ var MovieTexture_$ = __webpack_require__(328);
103515
- /* provided dependency */ var SuperGif = __webpack_require__(296);
103388
+ /* provided dependency */ var MovieTexture_$ = __webpack_require__(146);
103389
+ /* provided dependency */ var SuperGif = __webpack_require__(274);
103516
103390
  /*******************************************************************************
103517
103391
  *
103518
103392
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -105037,8 +104911,6 @@ function X3DSingleTextureCoordinateNode (executionContext)
105037
104911
  Texturing_X3DTextureCoordinateNode .call (this, executionContext);
105038
104912
 
105039
104913
  this .addType (Base_X3DConstants .X3DSingleTextureCoordinateNode);
105040
-
105041
- this .texCoordArray = Rendering_X3DGeometryNode .createArray ();
105042
104914
  }
105043
104915
 
105044
104916
  Object .assign (Object .setPrototypeOf (X3DSingleTextureCoordinateNode .prototype, Texturing_X3DTextureCoordinateNode .prototype),
@@ -105049,9 +104921,8 @@ Object .assign (Object .setPrototypeOf (X3DSingleTextureCoordinateNode .prototyp
105049
104921
  },
105050
104922
  init (multiArray)
105051
104923
  {
105052
- this .texCoordArray .length = 0;
105053
-
105054
- multiArray .push (this .texCoordArray);
104924
+ // Must use new array, because there can be cloned texture coordinate nodes.
104925
+ multiArray .push (Rendering_X3DGeometryNode .createArray ());
105055
104926
  },
105056
104927
  addPoint (index, multiArray)
105057
104928
  {
@@ -106790,7 +106661,7 @@ const gettext_default_ = gettext;
106790
106661
  x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
106791
106662
  /* harmony default export */ const locale_gettext = (gettext_default_);
106792
106663
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
106793
- /* provided dependency */ var BrowserTimings_$ = __webpack_require__(328);
106664
+ /* provided dependency */ var BrowserTimings_$ = __webpack_require__(146);
106794
106665
  /*******************************************************************************
106795
106666
  *
106796
106667
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107220,7 +107091,7 @@ const TextureQuality_default_ = TextureQuality;
107220
107091
  x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
107221
107092
  /* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
107222
107093
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
107223
- /* provided dependency */ var BrowserOptions_$ = __webpack_require__(328);
107094
+ /* provided dependency */ var BrowserOptions_$ = __webpack_require__(146);
107224
107095
  /*******************************************************************************
107225
107096
  *
107226
107097
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107810,7 +107681,7 @@ const RenderingProperties_default_ = RenderingProperties;
107810
107681
  x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
107811
107682
  /* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
107812
107683
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
107813
- /* provided dependency */ var Notification_$ = __webpack_require__(328);
107684
+ /* provided dependency */ var Notification_$ = __webpack_require__(146);
107814
107685
  /*******************************************************************************
107815
107686
  *
107816
107687
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107933,8 +107804,8 @@ const Notification_default_ = Notification;
107933
107804
  x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
107934
107805
  /* harmony default export */ const Core_Notification = (Notification_default_);
107935
107806
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
107936
- /* provided dependency */ var jquery_fullscreen = __webpack_require__(965);
107937
- /* provided dependency */ var ContextMenu_$ = __webpack_require__(328);
107807
+ /* provided dependency */ var jquery_fullscreen = __webpack_require__(986);
107808
+ /* provided dependency */ var ContextMenu_$ = __webpack_require__(146);
107938
107809
  /*******************************************************************************
107939
107810
  *
107940
107811
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -109186,7 +109057,7 @@ function X3DExportedNode (exportedName, localNode)
109186
109057
  Base_X3DObject .call (this);
109187
109058
 
109188
109059
  this [X3DExportedNode_exportedName] = exportedName;
109189
- this [_localNode] = localNode;
109060
+ this [_localNode] = Fields_SFNodeCache .get (localNode);
109190
109061
  }
109191
109062
 
109192
109063
  Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, Base_X3DObject .prototype),
@@ -109197,11 +109068,11 @@ Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, Base_X3DObje
109197
109068
  },
109198
109069
  getLocalNode ()
109199
109070
  {
109200
- return this [_localNode];
109071
+ return this [_localNode] .getValue ();
109201
109072
  },
109202
109073
  toVRMLStream (generator)
109203
109074
  {
109204
- const localName = generator .LocalName (this [_localNode]);
109075
+ const localName = generator .LocalName (this .getLocalNode ());
109205
109076
 
109206
109077
  generator .string += generator .Indent ();
109207
109078
  generator .string += "EXPORT";
@@ -109218,7 +109089,7 @@ Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, Base_X3DObje
109218
109089
  },
109219
109090
  toXMLStream (generator)
109220
109091
  {
109221
- const localName = generator .LocalName (this [_localNode]);
109092
+ const localName = generator .LocalName (this .getLocalNode ());
109222
109093
 
109223
109094
  generator .string += generator .Indent ();
109224
109095
  generator .string += "<EXPORT";
@@ -109239,7 +109110,7 @@ Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, Base_X3DObje
109239
109110
  },
109240
109111
  toJSONStream (generator)
109241
109112
  {
109242
- const localName = generator .LocalName (this [_localNode]);
109113
+ const localName = generator .LocalName (this .getLocalNode ());
109243
109114
 
109244
109115
  generator .string += generator .Indent ();
109245
109116
  generator .string += '{';
@@ -109312,7 +109183,7 @@ Object .defineProperties (X3DExportedNode .prototype,
109312
109183
  {
109313
109184
  get ()
109314
109185
  {
109315
- return Fields_SFNodeCache .get (this [_localNode]);
109186
+ return this [_localNode];
109316
109187
  },
109317
109188
  enumerable: true,
109318
109189
  },
@@ -109787,7 +109658,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
109787
109658
  const exportedNode = this [_exportedNodes] .get (exportedName);
109788
109659
 
109789
109660
  if (exportedNode)
109790
- return Fields_SFNodeCache .get (exportedNode .getLocalNode ());
109661
+ return exportedNode .localNode;
109791
109662
 
109792
109663
  throw new Error (`Exported node '${exportedName}' not found.`);
109793
109664
  },
@@ -109805,11 +109676,8 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
109805
109676
 
109806
109677
  const rootNodes = this .getRootNodes ();
109807
109678
 
109808
- for (const rootNode of rootNodes)
109809
- {
109810
- if (rootNode .equals (node))
109811
- return;
109812
- }
109679
+ if (rootNodes .includes (node))
109680
+ return;
109813
109681
 
109814
109682
  rootNodes .push (node);
109815
109683
  },
@@ -110685,7 +110553,7 @@ const DataStorage_default_ = DataStorage;
110685
110553
  x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
110686
110554
  /* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
110687
110555
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
110688
- /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(328);
110556
+ /* provided dependency */ var X3DCoreContext_$ = __webpack_require__(146);
110689
110557
  /*******************************************************************************
110690
110558
  *
110691
110559
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -111597,7 +111465,6 @@ x_ite_Namespace .add ("X3DEnvironmentalEffectsContext", "x_ite/Browser/Environme
111597
111465
 
111598
111466
 
111599
111467
 
111600
-
111601
111468
  function BoxOptions (executionContext)
111602
111469
  {
111603
111470
  Base_X3DBaseNode .call (this, executionContext);
@@ -111623,32 +111490,30 @@ Object .assign (Object .setPrototypeOf (BoxOptions .prototype, Base_X3DBaseNode
111623
111490
  texCoord = this .geometry ._texCoord .getValue (),
111624
111491
  coord = this .geometry ._coord .getValue ();
111625
111492
 
111626
- geometry ._texCoordIndex = new x_ite_Fields .MFInt32 (
111493
+ geometry ._texCoordIndex = [
111627
111494
  0, 1, 2, 3, -1, // front
111628
111495
  0, 1, 2, 3, -1, // back
111629
111496
  0, 1, 2, 3, -1, // left
111630
111497
  0, 1, 2, 3, -1, // right
111631
111498
  0, 1, 2, 3, -1, // top
111632
111499
  0, 1, 2, 3, -1 // bottom
111633
- );
111500
+ ];
111634
111501
 
111635
- geometry ._coordIndex = new x_ite_Fields .MFInt32 (
111502
+ geometry ._coordIndex = [
111636
111503
  0, 1, 2, 3, -1, // front
111637
111504
  5, 4, 7, 6, -1, // back
111638
111505
  1, 5, 6, 2, -1, // left
111639
111506
  4, 0, 3, 7, -1, // right
111640
111507
  4, 5, 1, 0, -1, // top
111641
111508
  3, 2, 6, 7, -1 // bottom
111642
- );
111509
+ ];
111643
111510
 
111644
- texCoord ._point = new x_ite_Fields .MFVec2f (
111645
- new x_ite_Fields .SFVec2f (1, 1), new x_ite_Fields .SFVec2f (0, 1), new x_ite_Fields .SFVec2f (0, 0), new x_ite_Fields .SFVec2f (1, 0)
111646
- );
111511
+ texCoord ._point = [1, 1, 0, 1, 0, 0, 1, 0];
111647
111512
 
111648
- coord ._point = new x_ite_Fields .MFVec3f (
111649
- new x_ite_Fields .SFVec3f ( 1, 1, 1), new x_ite_Fields .SFVec3f (-1, 1, 1), new x_ite_Fields .SFVec3f (-1, -1, 1), new x_ite_Fields .SFVec3f ( 1, -1, 1),
111650
- new x_ite_Fields .SFVec3f ( 1, 1, -1), new x_ite_Fields .SFVec3f (-1, 1, -1), new x_ite_Fields .SFVec3f (-1, -1, -1), new x_ite_Fields .SFVec3f ( 1, -1, -1)
111651
- );
111513
+ coord ._point = [
111514
+ 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1,
111515
+ 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1,
111516
+ ];
111652
111517
 
111653
111518
  texCoord .setup ();
111654
111519
  coord .setup ();
@@ -111724,15 +111589,221 @@ x_ite_Namespace .add ("BoxOptions", "x_ite/Browser/Geometry3D/BoxOptions", BoxOp
111724
111589
 
111725
111590
 
111726
111591
 
111592
+
111593
+
111594
+
111595
+
111596
+
111597
+
111598
+
111727
111599
  function ConeOptions (executionContext)
111728
111600
  {
111729
111601
  Base_X3DBaseNode .call (this, executionContext);
111730
111602
 
111731
- this .addChildObjects (Base_X3DConstants .inputOutput, "xDimension", new x_ite_Fields .SFInt32 (20),
111732
- Base_X3DConstants .inputOutput, "yDimension", new x_ite_Fields .SFInt32 (1))
111603
+ this .addChildObjects (Base_X3DConstants .inputOutput, "dimension", new x_ite_Fields .SFInt32 (20))
111733
111604
  }
111734
111605
 
111735
- Object .setPrototypeOf (ConeOptions .prototype, Base_X3DBaseNode .prototype);
111606
+ Object .assign (Object .setPrototypeOf (ConeOptions .prototype, Base_X3DBaseNode .prototype),
111607
+ {
111608
+ initialize ()
111609
+ {
111610
+ Base_X3DBaseNode .prototype .initialize .call (this);
111611
+
111612
+ this .addInterest ("eventsProcessed", this);
111613
+ },
111614
+ getSideGeometry ()
111615
+ {
111616
+ if (!this .sideGeometry)
111617
+ this .eventsProcessed ();
111618
+
111619
+ return this .sideGeometry;
111620
+ },
111621
+ getBottomGeometry ()
111622
+ {
111623
+ if (!this .bottomGeometry)
111624
+ this .eventsProcessed ();
111625
+
111626
+ return this .bottomGeometry;
111627
+ },
111628
+ createTexCoordIndex ()
111629
+ {
111630
+ const
111631
+ dimension = this ._dimension .getValue (),
111632
+ sideTexCoordIndex = this .sideGeometry ._texCoordIndex,
111633
+ bottomTexCoordIndex = this .bottomGeometry ._texCoordIndex;
111634
+
111635
+ // Side
111636
+
111637
+ for (let i = 0; i < dimension; ++ i)
111638
+ sideTexCoordIndex .push (i, i + 1, i + dimension + 1, -1);
111639
+
111640
+ // Bottom
111641
+
111642
+ for (let i = dimension - 1; i > -1; -- i)
111643
+ bottomTexCoordIndex .push (2 * (dimension + 1) + i);
111644
+
111645
+ bottomTexCoordIndex .push (-1);
111646
+ },
111647
+ createTexCoord ()
111648
+ {
111649
+ const
111650
+ dimension = this ._dimension .getValue (),
111651
+ point = this .sideGeometry ._texCoord .getValue () ._point;
111652
+
111653
+ // Side Bottom
111654
+
111655
+ for (let i = 0; i < dimension + 1; ++ i)
111656
+ {
111657
+ const u = i / dimension;
111658
+
111659
+ point .push (new Numbers_Vector2 (u, 0));
111660
+ }
111661
+
111662
+ // Side Top
111663
+
111664
+ for (let i = 0; i < dimension + 1; ++ i)
111665
+ {
111666
+ const u = (i + 0.5) / dimension;
111667
+
111668
+ point .push (new Numbers_Vector2 (u, 1));
111669
+ }
111670
+
111671
+ // Bottom
111672
+
111673
+ for (let i = 0; i < dimension; ++ i)
111674
+ {
111675
+ const
111676
+ u = i / dimension,
111677
+ theta = 2 * Math .PI * u,
111678
+ t = Numbers_Complex .Polar (-1, theta);
111679
+
111680
+ point .push (new Numbers_Vector2 ((t .imag + 1) / 2, (t .real + 1) / 2));
111681
+ }
111682
+ },
111683
+ createNormalIndex ()
111684
+ {
111685
+ const
111686
+ dimension = this ._dimension .getValue (),
111687
+ sideNormalIndex = this .sideGeometry ._normalIndex,
111688
+ bottomNormalIndex = this .bottomGeometry ._normalIndex;
111689
+
111690
+ // Side
111691
+
111692
+ for (let i = 0; i < dimension; ++ i)
111693
+ sideNormalIndex .push (i, (i + 1) % dimension, i + dimension, -1);
111694
+
111695
+ // Bottom
111696
+
111697
+ for (let i = 0; i < dimension; ++ i)
111698
+ bottomNormalIndex .push (2 * dimension);
111699
+
111700
+ bottomNormalIndex .push (-1);
111701
+ },
111702
+ createNormal ()
111703
+ {
111704
+ const
111705
+ dimension = this ._dimension .getValue (),
111706
+ vector = this .sideGeometry ._normal .getValue () ._vector,
111707
+ nz = Numbers_Complex .Polar (1, -Math .PI / 4);
111708
+
111709
+ // Side Bottom
111710
+
111711
+ for (let i = 0; i < dimension; ++ i)
111712
+ {
111713
+ const
111714
+ u = i / dimension,
111715
+ theta = 2 * Math .PI * u,
111716
+ n = Numbers_Complex .Polar (nz .imag, theta);
111717
+
111718
+ vector .push (new Numbers_Vector3 (n .imag, nz .real, n .real));
111719
+ }
111720
+
111721
+ // Side Top
111722
+
111723
+ for (let i = 0; i < dimension; ++ i)
111724
+ {
111725
+ const
111726
+ u = (i + 0.5) / dimension,
111727
+ theta = 2 * Math .PI * u,
111728
+ n = Numbers_Complex .Polar (nz .imag, theta);
111729
+
111730
+ vector .push (new Numbers_Vector3 (n .imag, nz .real, n .real));
111731
+ }
111732
+
111733
+ // Bottom
111734
+
111735
+ vector .push (new Numbers_Vector3 (0, -1, 0));
111736
+ },
111737
+ createCoordIndex ()
111738
+ {
111739
+ const
111740
+ dimension = this ._dimension .getValue (),
111741
+ sideCoordIndex = this .sideGeometry ._coordIndex,
111742
+ bottomCoordIndex = this .bottomGeometry ._coordIndex;
111743
+
111744
+ // Side
111745
+
111746
+ for (let i = 0; i < dimension; ++ i)
111747
+ sideCoordIndex .push (i, (i + 1) % dimension, dimension, -1);
111748
+
111749
+ // Bottom
111750
+
111751
+ for (let i = dimension - 1; i > -1; -- i)
111752
+ bottomCoordIndex .push (i);
111753
+
111754
+ bottomCoordIndex .push (-1);
111755
+ },
111756
+ createPoints ()
111757
+ {
111758
+ const
111759
+ dimension = this ._dimension .getValue (),
111760
+ point = this .sideGeometry ._coord .getValue () ._point;
111761
+
111762
+ for (let i = 0; i < dimension; ++ i)
111763
+ {
111764
+ const
111765
+ u = i / dimension,
111766
+ theta = 2 * Math .PI * u,
111767
+ p = Numbers_Complex .Polar (-1, theta);
111768
+
111769
+ point .push (new Numbers_Vector3 (p .imag, -1, p .real));
111770
+ }
111771
+
111772
+ point .push (new Numbers_Vector3 (0, 1, 0));
111773
+ },
111774
+ eventsProcessed ()
111775
+ {
111776
+ this .sideGeometry = new Geometry3D_IndexedFaceSet (this .getExecutionContext ());
111777
+ this .sideGeometry ._texCoord = new Texturing_TextureCoordinate (this .getExecutionContext ());
111778
+ this .sideGeometry ._normal = new Rendering_Normal (this .getExecutionContext ());
111779
+ this .sideGeometry ._coord = new Rendering_Coordinate (this .getExecutionContext ());
111780
+
111781
+ this .bottomGeometry = new Geometry3D_IndexedFaceSet (this .getExecutionContext ());
111782
+ this .bottomGeometry ._texCoord = this .sideGeometry ._texCoord;
111783
+ this .bottomGeometry ._normal = this .sideGeometry ._normal;
111784
+ this .bottomGeometry ._coord = this .sideGeometry ._coord;
111785
+
111786
+ this .createTexCoordIndex ();
111787
+ this .createTexCoord ();
111788
+ this .createNormalIndex ();
111789
+ this .createNormal ();
111790
+ this .createCoordIndex ();
111791
+ this .createPoints ();
111792
+
111793
+ const
111794
+ sideGeometry = this .sideGeometry,
111795
+ bottomGeometry = this .bottomGeometry,
111796
+ texCoord = this .sideGeometry ._texCoord .getValue (),
111797
+ normal = this .sideGeometry ._normal .getValue (),
111798
+ coord = this .sideGeometry ._coord .getValue ();
111799
+
111800
+ texCoord .setup ();
111801
+ normal .setup ();
111802
+ coord .setup ();
111803
+ sideGeometry .setup ();
111804
+ bottomGeometry .setup ();
111805
+ },
111806
+ });
111736
111807
 
111737
111808
  Object .defineProperties (ConeOptions,
111738
111809
  {
@@ -111800,15 +111871,274 @@ x_ite_Namespace .add ("ConeOptions", "x_ite/Browser/Geometry3D/ConeOptions", Con
111800
111871
 
111801
111872
 
111802
111873
 
111874
+
111875
+
111876
+
111877
+
111878
+
111879
+
111880
+
111803
111881
  function CylinderOptions (executionContext)
111804
111882
  {
111805
111883
  Base_X3DBaseNode .call (this, executionContext);
111806
111884
 
111807
- this .addChildObjects (Base_X3DConstants .inputOutput, "xDimension", new x_ite_Fields .SFInt32 (20),
111808
- Base_X3DConstants .inputOutput, "yDimension", new x_ite_Fields .SFInt32 (1))
111885
+ this .addChildObjects (Base_X3DConstants .inputOutput, "dimension", new x_ite_Fields .SFInt32 (20))
111809
111886
  }
111810
111887
 
111811
- Object .setPrototypeOf (CylinderOptions .prototype, Base_X3DBaseNode .prototype);
111888
+ Object .assign (Object .setPrototypeOf (CylinderOptions .prototype, Base_X3DBaseNode .prototype),
111889
+ {
111890
+ initialize ()
111891
+ {
111892
+ Base_X3DBaseNode .prototype .initialize .call (this);
111893
+
111894
+ this .addInterest ("eventsProcessed", this);
111895
+ },
111896
+ getSideGeometry ()
111897
+ {
111898
+ if (!this .sideGeometry)
111899
+ this .eventsProcessed ();
111900
+
111901
+ return this .sideGeometry;
111902
+ },
111903
+ getTopGeometry ()
111904
+ {
111905
+ if (!this .topGeometry)
111906
+ this .eventsProcessed ();
111907
+
111908
+ return this .topGeometry;
111909
+ },
111910
+ getBottomGeometry ()
111911
+ {
111912
+ if (!this .bottomGeometry)
111913
+ this .eventsProcessed ();
111914
+
111915
+ return this .bottomGeometry;
111916
+ },
111917
+ createTexCoordIndex ()
111918
+ {
111919
+ const
111920
+ dimension = this ._dimension .getValue (),
111921
+ sideTexCoordIndex = this .sideGeometry ._texCoordIndex,
111922
+ bottomTexCoordIndex = this .bottomGeometry ._texCoordIndex,
111923
+ topTexCoordIndex = this .topGeometry ._texCoordIndex;
111924
+
111925
+ // Side
111926
+
111927
+ for (let i = 0; i < dimension; ++ i)
111928
+ sideTexCoordIndex .push (i, i + 1, i + 2 + dimension, i + 1 + dimension, -1);
111929
+
111930
+ // Bottom
111931
+
111932
+ for (let i = dimension - 1; i > -1; -- i)
111933
+ bottomTexCoordIndex .push (2 * (dimension + 1) + i);
111934
+
111935
+ bottomTexCoordIndex .push (-1);
111936
+
111937
+ // Top
111938
+
111939
+ for (let i = 0; i < dimension; ++ i)
111940
+ topTexCoordIndex .push (2 * (dimension + 1) + dimension + i);
111941
+
111942
+ topTexCoordIndex .push (-1);
111943
+ },
111944
+ createTexCoord ()
111945
+ {
111946
+ const
111947
+ dimension = this ._dimension .getValue (),
111948
+ point = this .sideGeometry ._texCoord .getValue () ._point;
111949
+
111950
+ // Side Bottom
111951
+
111952
+ for (let i = 0; i < dimension + 1; ++ i)
111953
+ {
111954
+ const u = i / dimension;
111955
+
111956
+ point .push (new Numbers_Vector2 (u, 0));
111957
+ }
111958
+
111959
+ // Side Top
111960
+
111961
+ for (let i = 0; i < dimension + 1; ++ i)
111962
+ {
111963
+ const u = i/ dimension;
111964
+
111965
+ point .push (new Numbers_Vector2 (u, 1));
111966
+ }
111967
+
111968
+ // Bottom
111969
+
111970
+ for (let i = 0; i < dimension; ++ i)
111971
+ {
111972
+ const
111973
+ u = i / dimension,
111974
+ theta = 2 * Math .PI * u,
111975
+ t = Numbers_Complex .Polar (-1, theta);
111976
+
111977
+ point .push (new Numbers_Vector2 ((t .imag + 1) / 2, (t .real + 1) / 2));
111978
+ }
111979
+
111980
+ // Top
111981
+
111982
+ for (let i = 0; i < dimension; ++ i)
111983
+ {
111984
+ const
111985
+ u = i / dimension,
111986
+ theta = 2 * Math .PI * u,
111987
+ t = Numbers_Complex .Polar (1, theta);
111988
+
111989
+ point .push (new Numbers_Vector2 (1 - (t .imag + 1) / 2, (t .real + 1) / 2));
111990
+ }
111991
+ },
111992
+ createNormalIndex ()
111993
+ {
111994
+ const
111995
+ dimension = this ._dimension .getValue (),
111996
+ sideNormalIndex = this .sideGeometry ._normalIndex,
111997
+ bottomNormalIndex = this .bottomGeometry ._normalIndex,
111998
+ topNormalIndex = this .topGeometry ._normalIndex;
111999
+
112000
+ // Side
112001
+
112002
+ for (let i = 0; i < dimension; ++ i)
112003
+ sideNormalIndex .push (i, (i + 1) % dimension, (i + 1) % dimension, i, -1);
112004
+
112005
+ // Bottom
112006
+
112007
+ for (let i = 0; i < dimension; ++ i)
112008
+ bottomNormalIndex .push (dimension);
112009
+
112010
+ bottomNormalIndex .push (-1);
112011
+
112012
+ // Top
112013
+
112014
+ for (let i = 0; i < dimension; ++ i)
112015
+ topNormalIndex .push (dimension + 1);
112016
+
112017
+ topNormalIndex .push (-1);
112018
+ },
112019
+ createNormal ()
112020
+ {
112021
+ const
112022
+ dimension = this ._dimension .getValue (),
112023
+ vector = this .sideGeometry ._normal .getValue () ._vector;
112024
+
112025
+ // Side
112026
+
112027
+ for (let i = 0; i < dimension; ++ i)
112028
+ {
112029
+ const
112030
+ u = i / dimension,
112031
+ theta = 2 * Math .PI * u,
112032
+ n = Numbers_Complex .Polar (-1, theta);
112033
+
112034
+ vector .push (new Numbers_Vector3 (n .imag, 0, n .real));
112035
+ }
112036
+
112037
+ // Bottom
112038
+
112039
+ vector .push (new Numbers_Vector3 (0, -1, 0));
112040
+
112041
+ // Top
112042
+
112043
+ vector .push (new Numbers_Vector3 (0, 1, 0));
112044
+ },
112045
+ createCoordIndex ()
112046
+ {
112047
+ const
112048
+ dimension = this ._dimension .getValue (),
112049
+ sideCoordIndex = this .sideGeometry ._coordIndex,
112050
+ bottomCoordIndex = this .bottomGeometry ._coordIndex,
112051
+ topCoordIndex = this .topGeometry ._coordIndex;
112052
+
112053
+ // Side
112054
+
112055
+ for (let i = 0; i < dimension; ++ i)
112056
+ sideCoordIndex .push (i, (i + 1) % dimension, (i + 1) % dimension + dimension, i + dimension, -1);
112057
+
112058
+ // Bottom
112059
+
112060
+ for (let i = dimension - 1; i > -1; -- i)
112061
+ bottomCoordIndex .push (i);
112062
+
112063
+ bottomCoordIndex .push (-1);
112064
+
112065
+ // Top
112066
+
112067
+ for (let i = 0; i < dimension; ++ i)
112068
+ topCoordIndex .push (i + dimension);
112069
+
112070
+ topCoordIndex .push (-1);
112071
+ },
112072
+ createPoints ()
112073
+ {
112074
+ const
112075
+ dimension = this ._dimension .getValue (),
112076
+ point = this .sideGeometry ._coord .getValue () ._point;
112077
+
112078
+ // Bottom
112079
+
112080
+ for (let i = 0; i < dimension; ++ i)
112081
+ {
112082
+ const
112083
+ u = i / dimension,
112084
+ theta = 2 * Math .PI * u,
112085
+ p = Numbers_Complex .Polar (-1, theta);
112086
+
112087
+ point .push (new Numbers_Vector3 (p .imag, -1, p .real));
112088
+ }
112089
+
112090
+ // Top
112091
+
112092
+ for (let i = 0; i < dimension; ++ i)
112093
+ {
112094
+ const
112095
+ u = i / dimension,
112096
+ theta = 2 * Math .PI * u,
112097
+ p = Numbers_Complex .Polar (-1, theta);
112098
+
112099
+ point .push (new Numbers_Vector3 (p .imag, 1, p .real));
112100
+ }
112101
+ },
112102
+ eventsProcessed ()
112103
+ {
112104
+ this .sideGeometry = new Geometry3D_IndexedFaceSet (this .getExecutionContext ());
112105
+ this .sideGeometry ._texCoord = new Texturing_TextureCoordinate (this .getExecutionContext ());
112106
+ this .sideGeometry ._normal = new Rendering_Normal (this .getExecutionContext ());
112107
+ this .sideGeometry ._coord = new Rendering_Coordinate (this .getExecutionContext ());
112108
+
112109
+ this .bottomGeometry = new Geometry3D_IndexedFaceSet (this .getExecutionContext ());
112110
+ this .bottomGeometry ._texCoord = this .sideGeometry ._texCoord;
112111
+ this .bottomGeometry ._normal = this .sideGeometry ._normal;
112112
+ this .bottomGeometry ._coord = this .sideGeometry ._coord;
112113
+
112114
+ this .topGeometry = new Geometry3D_IndexedFaceSet (this .getExecutionContext ());
112115
+ this .topGeometry ._texCoord = this .sideGeometry ._texCoord;
112116
+ this .topGeometry ._normal = this .sideGeometry ._normal;
112117
+ this .topGeometry ._coord = this .sideGeometry ._coord;
112118
+
112119
+ this .createTexCoordIndex ();
112120
+ this .createTexCoord ();
112121
+ this .createNormalIndex ();
112122
+ this .createNormal ();
112123
+ this .createCoordIndex ();
112124
+ this .createPoints ();
112125
+
112126
+ const
112127
+ sideGeometry = this .sideGeometry,
112128
+ bottomGeometry = this .bottomGeometry,
112129
+ topGeometry = this .topGeometry,
112130
+ texCoord = this .sideGeometry ._texCoord .getValue (),
112131
+ normal = this .sideGeometry ._normal .getValue (),
112132
+ coord = this .sideGeometry ._coord .getValue ();
112133
+
112134
+ texCoord .setup ();
112135
+ normal .setup ();
112136
+ coord .setup ();
112137
+ sideGeometry .setup ();
112138
+ bottomGeometry .setup ();
112139
+ topGeometry .setup ();
112140
+ },
112141
+ });
111812
112142
 
111813
112143
  Object .defineProperties (CylinderOptions,
111814
112144
  {
@@ -111900,7 +112230,7 @@ Object .assign (Object .setPrototypeOf (QuadSphereOptions .prototype, Base_X3DBa
111900
112230
  },
111901
112231
  getGeometry ()
111902
112232
  {
111903
- if (! this .geometry)
112233
+ if (!this .geometry)
111904
112234
  this .eventsProcessed ();
111905
112235
 
111906
112236
  return this .geometry;
@@ -112205,24 +112535,24 @@ Object .assign (X3DGeometry3DContext .prototype,
112205
112535
  {
112206
112536
  case Core_PrimitiveQuality .LOW:
112207
112537
  {
112208
- cone ._xDimension = 16;
112209
- cylinder ._xDimension = 16;
112538
+ cone ._dimension = 16;
112539
+ cylinder ._dimension = 16;
112210
112540
  sphere ._xDimension = 20;
112211
112541
  sphere ._yDimension = 9;
112212
112542
  break;
112213
112543
  }
112214
112544
  case Core_PrimitiveQuality .MEDIUM:
112215
112545
  {
112216
- cone ._xDimension = 20;
112217
- cylinder ._xDimension = 20;
112546
+ cone ._dimension = 20;
112547
+ cylinder ._dimension = 20;
112218
112548
  sphere ._xDimension = 32;
112219
112549
  sphere ._yDimension = 15;
112220
112550
  break;
112221
112551
  }
112222
112552
  case Core_PrimitiveQuality .HIGH:
112223
112553
  {
112224
- cone ._xDimension = 32;
112225
- cylinder ._xDimension = 32;
112554
+ cone ._dimension = 32;
112555
+ cylinder ._dimension = 32;
112226
112556
  sphere ._xDimension = 64;
112227
112557
  sphere ._yDimension = 31;
112228
112558
  break;
@@ -112750,8 +113080,8 @@ const X3DViewer_default_ = X3DViewer;
112750
113080
  x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
112751
113081
  /* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
112752
113082
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
112753
- /* provided dependency */ var jquery_mousewheel = __webpack_require__(62);
112754
- /* provided dependency */ var ExamineViewer_$ = __webpack_require__(328);
113083
+ /* provided dependency */ var jquery_mousewheel = __webpack_require__(165);
113084
+ /* provided dependency */ var ExamineViewer_$ = __webpack_require__(146);
112755
113085
  /*******************************************************************************
112756
113086
  *
112757
113087
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -113623,8 +113953,8 @@ const ExamineViewer_default_ = ExamineViewer;
113623
113953
  x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
113624
113954
  /* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
113625
113955
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
113626
- /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(62);
113627
- /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(328);
113956
+ /* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(165);
113957
+ /* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(146);
113628
113958
  /*******************************************************************************
113629
113959
  *
113630
113960
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114633,8 +114963,8 @@ const FlyViewer_default_ = FlyViewer;
114633
114963
  x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
114634
114964
  /* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
114635
114965
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
114636
- /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(62);
114637
- /* provided dependency */ var PlaneViewer_$ = __webpack_require__(328);
114966
+ /* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(165);
114967
+ /* provided dependency */ var PlaneViewer_$ = __webpack_require__(146);
114638
114968
  /*******************************************************************************
114639
114969
  *
114640
114970
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -114965,8 +115295,8 @@ const NoneViewer_default_ = NoneViewer;
114965
115295
  x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
114966
115296
  /* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
114967
115297
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
114968
- /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(62);
114969
- /* provided dependency */ var LookAtViewer_$ = __webpack_require__(328);
115298
+ /* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(165);
115299
+ /* provided dependency */ var LookAtViewer_$ = __webpack_require__(146);
114970
115300
  /*******************************************************************************
114971
115301
  *
114972
115302
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -116105,8 +116435,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
116105
116435
  x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
116106
116436
  /* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
116107
116437
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
116108
- /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(62);
116109
- /* provided dependency */ var PointingDevice_$ = __webpack_require__(328);
116438
+ /* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(165);
116439
+ /* provided dependency */ var PointingDevice_$ = __webpack_require__(146);
116110
116440
  /*******************************************************************************
116111
116441
  *
116112
116442
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -117385,7 +117715,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
117385
117715
  x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
117386
117716
  /* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
117387
117717
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
117388
- /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(328);
117718
+ /* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(146);
117389
117719
  /*******************************************************************************
117390
117720
  *
117391
117721
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -118288,7 +118618,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
118288
118618
  x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
118289
118619
  /* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
118290
118620
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
118291
- /* provided dependency */ var KTXDecoder_$ = __webpack_require__(328);
118621
+ /* provided dependency */ var KTXDecoder_$ = __webpack_require__(146);
118292
118622
  const KTXDecoder_default_ = class KTXDecoder
118293
118623
  {
118294
118624
  constructor (gl, externalKtxlib, scriptDir)
@@ -119841,7 +120171,7 @@ const Components_default_ = Components;
119841
120171
  x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
119842
120172
  /* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
119843
120173
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
119844
- /* provided dependency */ var DOMIntegration_$ = __webpack_require__(328);
120174
+ /* provided dependency */ var DOMIntegration_$ = __webpack_require__(146);
119845
120175
  /*******************************************************************************
119846
120176
  * MIT License
119847
120177
  *
@@ -120980,7 +121310,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
120980
121310
  x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
120981
121311
  /* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
120982
121312
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
120983
- /* provided dependency */ var X3DBrowser_$ = __webpack_require__(328);
121313
+ /* provided dependency */ var X3DBrowser_$ = __webpack_require__(146);
120984
121314
  /*******************************************************************************
120985
121315
  *
120986
121316
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122061,7 +122391,7 @@ const X3DBrowser_default_ = X3DBrowser;
122061
122391
  x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
122062
122392
  /* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
122063
122393
  ;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
122064
- /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(328);
122394
+ /* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(146);
122065
122395
  /*******************************************************************************
122066
122396
  *
122067
122397
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122193,8 +122523,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
122193
122523
  x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
122194
122524
  /* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
122195
122525
  ;// CONCATENATED MODULE: ./src/lib/jquery.js
122196
- /* provided dependency */ var jquery_$ = __webpack_require__(328);
122197
- /* provided dependency */ var pako = __webpack_require__(583);
122526
+ /* provided dependency */ var jquery_$ = __webpack_require__(146);
122527
+ /* provided dependency */ var pako = __webpack_require__(250);
122198
122528
  Object .assign (jquery_$,
122199
122529
  {
122200
122530
  decodeText (input)
@@ -122271,14 +122601,14 @@ const jquery_default_ = jquery_$;
122271
122601
  x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
122272
122602
  /* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
122273
122603
  ;// CONCATENATED MODULE: ./src/lib/libtess.js
122274
- /* provided dependency */ var libtess_libtess = __webpack_require__(981);
122604
+ /* provided dependency */ var libtess_libtess = __webpack_require__(509);
122275
122605
  const libtess_default_ = libtess_libtess;
122276
122606
  ;
122277
122607
 
122278
122608
  x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
122279
122609
  /* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
122280
122610
  ;// CONCATENATED MODULE: ./src/x_ite/X3D.js
122281
- /* provided dependency */ var X3D_$ = __webpack_require__(328);
122611
+ /* provided dependency */ var X3D_$ = __webpack_require__(146);
122282
122612
  /*******************************************************************************
122283
122613
  *
122284
122614
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -122672,7 +123002,7 @@ x_ite_Namespace .add ("shim", "shim", shim_default_);
122672
123002
 
122673
123003
  // Assign X3D to global namespace.
122674
123004
 
122675
- window [Symbol .for ("X_ITE.X3D-9.1.6")] = x_ite_X3D;
123005
+ window [Symbol .for ("X_ITE.X3D-9.1.7")] = x_ite_X3D;
122676
123006
 
122677
123007
  customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
122678
123008