x_ite 11.5.11 → 11.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/assets/components/AnnotationComponent.js +2 -378
- package/dist/assets/components/AnnotationComponent.min.js +2 -2
- package/dist/assets/components/CADGeometryComponent.js +2 -378
- package/dist/assets/components/CADGeometryComponent.min.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.js +4 -333
- package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
- package/dist/assets/components/DISComponent.js +2 -331
- package/dist/assets/components/DISComponent.min.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.js +2 -472
- package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
- package/dist/assets/components/Geometry2DComponent.js +2 -707
- package/dist/assets/components/Geometry2DComponent.min.js +2 -2
- package/dist/assets/components/GeospatialComponent.js +4 -897
- package/dist/assets/components/GeospatialComponent.min.js +2 -2
- package/dist/assets/components/HAnimComponent.js +9 -338
- package/dist/assets/components/HAnimComponent.min.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.js +2 -237
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
- package/dist/assets/components/LayoutComponent.js +2 -425
- package/dist/assets/components/LayoutComponent.min.js +2 -2
- package/dist/assets/components/NURBSComponent.js +3 -896
- package/dist/assets/components/NURBSComponent.min.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.js +9 -715
- package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
- package/dist/assets/components/PickingComponent.js +2 -566
- package/dist/assets/components/PickingComponent.min.js +2 -2
- package/dist/assets/components/RigidBodyPhysicsComponent.js +2 -942
- package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
- package/dist/assets/components/ScriptingComponent.js +2 -190
- package/dist/assets/components/ScriptingComponent.min.js +2 -2
- package/dist/assets/components/TextComponent.js +2 -379
- package/dist/assets/components/TextComponent.min.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.js +8 -196
- package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
- package/dist/assets/components/Texturing3DComponent.js +4303 -4867
- package/dist/assets/components/Texturing3DComponent.min.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.js +5 -900
- package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
- package/dist/assets/components/WebXRComponent.js +5 -145
- package/dist/assets/components/WebXRComponent.min.js +2 -2
- package/dist/assets/components/X_ITEComponent.js +18 -853
- package/dist/assets/components/X_ITEComponent.min.js +2 -2
- package/dist/assets/fonts/PT_Sans/OFL.txt +94 -94
- package/dist/assets/lib/libktx.js +1 -1
- package/dist/assets/lib/libktx.wasm +0 -0
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +51129 -70574
- package/dist/x_ite.min.js +2 -2
- package/dist/x_ite.min.mjs +2 -2
- package/dist/x_ite.mjs +51013 -70458
- package/dist/x_ite.zip +0 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* X_ITE v11.5.
|
|
2
|
-
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-11.5.
|
|
1
|
+
/* X_ITE v11.5.14 */
|
|
2
|
+
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-11.5.14")];
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ "use strict";
|
|
5
5
|
/******/ // The require scope
|
|
@@ -67,53 +67,6 @@ var external_X_ITE_X3D_X3DConstants_default = /*#__PURE__*/__webpack_require__.n
|
|
|
67
67
|
const external_X_ITE_X3D_Namespace_namespaceObject = __X_ITE_X3D__ .Namespace;
|
|
68
68
|
var external_X_ITE_X3D_Namespace_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Namespace_namespaceObject);
|
|
69
69
|
;// ./src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js
|
|
70
|
-
/*******************************************************************************
|
|
71
|
-
*
|
|
72
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
73
|
-
*
|
|
74
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
75
|
-
*
|
|
76
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
77
|
-
*
|
|
78
|
-
* The copyright notice above does not evidence any actual of intended
|
|
79
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
80
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
81
|
-
* create3000.
|
|
82
|
-
*
|
|
83
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
84
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
85
|
-
* permission of create3000.
|
|
86
|
-
*
|
|
87
|
-
* NON-MILITARY USE ONLY
|
|
88
|
-
*
|
|
89
|
-
* All create3000 software are effectively free software with a non-military use
|
|
90
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
91
|
-
* source in any way you please with the exception anything that uses it must be
|
|
92
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
93
|
-
*
|
|
94
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
95
|
-
*
|
|
96
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
97
|
-
*
|
|
98
|
-
* This file is part of the X_ITE Project.
|
|
99
|
-
*
|
|
100
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
101
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
102
|
-
* Free Software Foundation.
|
|
103
|
-
*
|
|
104
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
105
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
106
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
107
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
108
|
-
*
|
|
109
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
110
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
111
|
-
* copy of the GPLv3 License.
|
|
112
|
-
*
|
|
113
|
-
* For Silvio, Joy and Adi.
|
|
114
|
-
*
|
|
115
|
-
******************************************************************************/
|
|
116
|
-
|
|
117
70
|
|
|
118
71
|
|
|
119
72
|
|
|
@@ -134,53 +87,6 @@ const __default__ = X3DProductStructureChildNode;
|
|
|
134
87
|
|
|
135
88
|
/* harmony default export */ const CADGeometry_X3DProductStructureChildNode = (external_X_ITE_X3D_Namespace_default().add ("X3DProductStructureChildNode", __default__));
|
|
136
89
|
;// ./src/x_ite/Components/CADGeometry/CADAssembly.js
|
|
137
|
-
/*******************************************************************************
|
|
138
|
-
*
|
|
139
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
140
|
-
*
|
|
141
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
142
|
-
*
|
|
143
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
144
|
-
*
|
|
145
|
-
* The copyright notice above does not evidence any actual of intended
|
|
146
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
147
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
148
|
-
* create3000.
|
|
149
|
-
*
|
|
150
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
151
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
152
|
-
* permission of create3000.
|
|
153
|
-
*
|
|
154
|
-
* NON-MILITARY USE ONLY
|
|
155
|
-
*
|
|
156
|
-
* All create3000 software are effectively free software with a non-military use
|
|
157
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
158
|
-
* source in any way you please with the exception anything that uses it must be
|
|
159
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
160
|
-
*
|
|
161
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
162
|
-
*
|
|
163
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
164
|
-
*
|
|
165
|
-
* This file is part of the X_ITE Project.
|
|
166
|
-
*
|
|
167
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
168
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
169
|
-
* Free Software Foundation.
|
|
170
|
-
*
|
|
171
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
172
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
173
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
174
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
175
|
-
*
|
|
176
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
177
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
178
|
-
* copy of the GPLv3 License.
|
|
179
|
-
*
|
|
180
|
-
* For Silvio, Joy and Adi.
|
|
181
|
-
*
|
|
182
|
-
******************************************************************************/
|
|
183
|
-
|
|
184
90
|
|
|
185
91
|
|
|
186
92
|
|
|
@@ -233,53 +139,6 @@ var external_X_ITE_X3D_TraverseType_default = /*#__PURE__*/__webpack_require__.n
|
|
|
233
139
|
const external_X_ITE_X3D_X3DCast_namespaceObject = __X_ITE_X3D__ .X3DCast;
|
|
234
140
|
var external_X_ITE_X3D_X3DCast_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DCast_namespaceObject);
|
|
235
141
|
;// ./src/x_ite/Components/CADGeometry/CADFace.js
|
|
236
|
-
/*******************************************************************************
|
|
237
|
-
*
|
|
238
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
239
|
-
*
|
|
240
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
241
|
-
*
|
|
242
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
243
|
-
*
|
|
244
|
-
* The copyright notice above does not evidence any actual of intended
|
|
245
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
246
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
247
|
-
* create3000.
|
|
248
|
-
*
|
|
249
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
250
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
251
|
-
* permission of create3000.
|
|
252
|
-
*
|
|
253
|
-
* NON-MILITARY USE ONLY
|
|
254
|
-
*
|
|
255
|
-
* All create3000 software are effectively free software with a non-military use
|
|
256
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
257
|
-
* source in any way you please with the exception anything that uses it must be
|
|
258
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
259
|
-
*
|
|
260
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
261
|
-
*
|
|
262
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
263
|
-
*
|
|
264
|
-
* This file is part of the X_ITE Project.
|
|
265
|
-
*
|
|
266
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
267
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
268
|
-
* Free Software Foundation.
|
|
269
|
-
*
|
|
270
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
271
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
272
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
273
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
274
|
-
*
|
|
275
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
276
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
277
|
-
* copy of the GPLv3 License.
|
|
278
|
-
*
|
|
279
|
-
* For Silvio, Joy and Adi.
|
|
280
|
-
*
|
|
281
|
-
******************************************************************************/
|
|
282
|
-
|
|
283
142
|
|
|
284
143
|
|
|
285
144
|
|
|
@@ -547,53 +406,6 @@ const CADFace_default_ = CADFace;
|
|
|
547
406
|
|
|
548
407
|
/* harmony default export */ const CADGeometry_CADFace = (external_X_ITE_X3D_Namespace_default().add ("CADFace", CADFace_default_));
|
|
549
408
|
;// ./src/x_ite/Components/CADGeometry/CADLayer.js
|
|
550
|
-
/*******************************************************************************
|
|
551
|
-
*
|
|
552
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
553
|
-
*
|
|
554
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
555
|
-
*
|
|
556
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
557
|
-
*
|
|
558
|
-
* The copyright notice above does not evidence any actual of intended
|
|
559
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
560
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
561
|
-
* create3000.
|
|
562
|
-
*
|
|
563
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
564
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
565
|
-
* permission of create3000.
|
|
566
|
-
*
|
|
567
|
-
* NON-MILITARY USE ONLY
|
|
568
|
-
*
|
|
569
|
-
* All create3000 software are effectively free software with a non-military use
|
|
570
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
571
|
-
* source in any way you please with the exception anything that uses it must be
|
|
572
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
573
|
-
*
|
|
574
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
575
|
-
*
|
|
576
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
577
|
-
*
|
|
578
|
-
* This file is part of the X_ITE Project.
|
|
579
|
-
*
|
|
580
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
581
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
582
|
-
* Free Software Foundation.
|
|
583
|
-
*
|
|
584
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
585
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
586
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
587
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
588
|
-
*
|
|
589
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
590
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
591
|
-
* copy of the GPLv3 License.
|
|
592
|
-
*
|
|
593
|
-
* For Silvio, Joy and Adi.
|
|
594
|
-
*
|
|
595
|
-
******************************************************************************/
|
|
596
|
-
|
|
597
409
|
|
|
598
410
|
|
|
599
411
|
|
|
@@ -638,53 +450,6 @@ const CADLayer_default_ = CADLayer;
|
|
|
638
450
|
const external_X_ITE_X3D_X3DTransformNode_namespaceObject = __X_ITE_X3D__ .X3DTransformNode;
|
|
639
451
|
var external_X_ITE_X3D_X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DTransformNode_namespaceObject);
|
|
640
452
|
;// ./src/x_ite/Components/CADGeometry/CADPart.js
|
|
641
|
-
/*******************************************************************************
|
|
642
|
-
*
|
|
643
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
644
|
-
*
|
|
645
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
646
|
-
*
|
|
647
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
648
|
-
*
|
|
649
|
-
* The copyright notice above does not evidence any actual of intended
|
|
650
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
651
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
652
|
-
* create3000.
|
|
653
|
-
*
|
|
654
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
655
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
656
|
-
* permission of create3000.
|
|
657
|
-
*
|
|
658
|
-
* NON-MILITARY USE ONLY
|
|
659
|
-
*
|
|
660
|
-
* All create3000 software are effectively free software with a non-military use
|
|
661
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
662
|
-
* source in any way you please with the exception anything that uses it must be
|
|
663
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
664
|
-
*
|
|
665
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
666
|
-
*
|
|
667
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
668
|
-
*
|
|
669
|
-
* This file is part of the X_ITE Project.
|
|
670
|
-
*
|
|
671
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
672
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
673
|
-
* Free Software Foundation.
|
|
674
|
-
*
|
|
675
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
676
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
677
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
678
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
679
|
-
*
|
|
680
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
681
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
682
|
-
* copy of the GPLv3 License.
|
|
683
|
-
*
|
|
684
|
-
* For Silvio, Joy and Adi.
|
|
685
|
-
*
|
|
686
|
-
******************************************************************************/
|
|
687
|
-
|
|
688
453
|
|
|
689
454
|
|
|
690
455
|
|
|
@@ -736,53 +501,6 @@ const CADPart_default_ = CADPart;
|
|
|
736
501
|
const external_X_ITE_X3D_X3DComposedGeometryNode_namespaceObject = __X_ITE_X3D__ .X3DComposedGeometryNode;
|
|
737
502
|
var external_X_ITE_X3D_X3DComposedGeometryNode_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DComposedGeometryNode_namespaceObject);
|
|
738
503
|
;// ./src/x_ite/Components/CADGeometry/IndexedQuadSet.js
|
|
739
|
-
/*******************************************************************************
|
|
740
|
-
*
|
|
741
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
742
|
-
*
|
|
743
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
744
|
-
*
|
|
745
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
746
|
-
*
|
|
747
|
-
* The copyright notice above does not evidence any actual of intended
|
|
748
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
749
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
750
|
-
* create3000.
|
|
751
|
-
*
|
|
752
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
753
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
754
|
-
* permission of create3000.
|
|
755
|
-
*
|
|
756
|
-
* NON-MILITARY USE ONLY
|
|
757
|
-
*
|
|
758
|
-
* All create3000 software are effectively free software with a non-military use
|
|
759
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
760
|
-
* source in any way you please with the exception anything that uses it must be
|
|
761
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
762
|
-
*
|
|
763
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
764
|
-
*
|
|
765
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
766
|
-
*
|
|
767
|
-
* This file is part of the X_ITE Project.
|
|
768
|
-
*
|
|
769
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
770
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
771
|
-
* Free Software Foundation.
|
|
772
|
-
*
|
|
773
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
774
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
775
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
776
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
777
|
-
*
|
|
778
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
779
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
780
|
-
* copy of the GPLv3 License.
|
|
781
|
-
*
|
|
782
|
-
* For Silvio, Joy and Adi.
|
|
783
|
-
*
|
|
784
|
-
******************************************************************************/
|
|
785
|
-
|
|
786
504
|
|
|
787
505
|
|
|
788
506
|
|
|
@@ -866,53 +584,6 @@ const IndexedQuadSet_default_ = IndexedQuadSet;
|
|
|
866
584
|
|
|
867
585
|
/* harmony default export */ const CADGeometry_IndexedQuadSet = (external_X_ITE_X3D_Namespace_default().add ("IndexedQuadSet", IndexedQuadSet_default_));
|
|
868
586
|
;// ./src/x_ite/Components/CADGeometry/QuadSet.js
|
|
869
|
-
/*******************************************************************************
|
|
870
|
-
*
|
|
871
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
872
|
-
*
|
|
873
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
874
|
-
*
|
|
875
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
876
|
-
*
|
|
877
|
-
* The copyright notice above does not evidence any actual of intended
|
|
878
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
879
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
880
|
-
* create3000.
|
|
881
|
-
*
|
|
882
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
883
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
884
|
-
* permission of create3000.
|
|
885
|
-
*
|
|
886
|
-
* NON-MILITARY USE ONLY
|
|
887
|
-
*
|
|
888
|
-
* All create3000 software are effectively free software with a non-military use
|
|
889
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
890
|
-
* source in any way you please with the exception anything that uses it must be
|
|
891
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
892
|
-
*
|
|
893
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
894
|
-
*
|
|
895
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
896
|
-
*
|
|
897
|
-
* This file is part of the X_ITE Project.
|
|
898
|
-
*
|
|
899
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
900
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
901
|
-
* Free Software Foundation.
|
|
902
|
-
*
|
|
903
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
904
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
905
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
906
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
907
|
-
*
|
|
908
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
909
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
910
|
-
* copy of the GPLv3 License.
|
|
911
|
-
*
|
|
912
|
-
* For Silvio, Joy and Adi.
|
|
913
|
-
*
|
|
914
|
-
******************************************************************************/
|
|
915
|
-
|
|
916
587
|
|
|
917
588
|
|
|
918
589
|
|
|
@@ -988,53 +659,6 @@ const QuadSet_default_ = QuadSet;
|
|
|
988
659
|
|
|
989
660
|
/* harmony default export */ const CADGeometry_QuadSet = (external_X_ITE_X3D_Namespace_default().add ("QuadSet", QuadSet_default_));
|
|
990
661
|
;// ./src/assets/components/CADGeometryComponent.js
|
|
991
|
-
/*******************************************************************************
|
|
992
|
-
*
|
|
993
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
994
|
-
*
|
|
995
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
996
|
-
*
|
|
997
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
998
|
-
*
|
|
999
|
-
* The copyright notice above does not evidence any actual of intended
|
|
1000
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
1001
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
1002
|
-
* create3000.
|
|
1003
|
-
*
|
|
1004
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
1005
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
1006
|
-
* permission of create3000.
|
|
1007
|
-
*
|
|
1008
|
-
* NON-MILITARY USE ONLY
|
|
1009
|
-
*
|
|
1010
|
-
* All create3000 software are effectively free software with a non-military use
|
|
1011
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
1012
|
-
* source in any way you please with the exception anything that uses it must be
|
|
1013
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
1014
|
-
*
|
|
1015
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
1016
|
-
*
|
|
1017
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
1018
|
-
*
|
|
1019
|
-
* This file is part of the X_ITE Project.
|
|
1020
|
-
*
|
|
1021
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
1022
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
1023
|
-
* Free Software Foundation.
|
|
1024
|
-
*
|
|
1025
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
1026
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
1027
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
1028
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
1029
|
-
*
|
|
1030
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
1031
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
1032
|
-
* copy of the GPLv3 License.
|
|
1033
|
-
*
|
|
1034
|
-
* For Silvio, Joy and Adi.
|
|
1035
|
-
*
|
|
1036
|
-
******************************************************************************/
|
|
1037
|
-
|
|
1038
662
|
|
|
1039
663
|
|
|
1040
664
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* X_ITE v11.5.
|
|
2
|
-
const e=window[Symbol.for("X_ITE.X3D-11.5.11")];(()=>{var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const i=e.Components;var n=t.n(i);const s=e.Fields;var o=t.n(s);const r=e.X3DFieldDefinition;var l=t.n(r);const d=e.FieldDefinitionArray;var u=t.n(d);const a=e.X3DNode;var c=t.n(a);const b=e.X3DGroupingNode;var p=t.n(b);const O=e.X3DChildNode;var h=t.n(O);const w=e.X3DConstants;var j=t.n(w);const y=e.Namespace;var S=t.n(y);function _(e){h().call(this,e),this.addType(j().X3DProductStructureChildNode)}Object.setPrototypeOf(_.prototype,h().prototype),Object.defineProperties(_,c().getStaticProperties("X3DProductStructureChildNode","CADGeometry",2));const m=_,F=S().add("X3DProductStructureChildNode",m);function f(e){p().call(this,e),F.call(this,e),this.addType(j().CADAssembly)}Object.setPrototypeOf(f.prototype,p().prototype),Object.defineProperties(f,{...c().getStaticProperties("CADAssembly","CADGeometry",2,"children","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOutput,"name",new(o().SFString)),new(l())(j().inputOutput,"visible",new(o().SFBool)(!0)),new(l())(j().inputOutput,"bboxDisplay",new(o().SFBool)),new(l())(j().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(l())(j().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(l())(j().inputOnly,"addChildren",new(o().MFNode)),new(l())(j().inputOnly,"removeChildren",new(o().MFNode)),new(l())(j().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const C=f,v=S().add("CADAssembly",C),g=e.X3DBoundedObject;var D=t.n(g);const N=e.TraverseType;var P=t.n(N);const x=e.X3DCast;var B=t.n(x);function I(e){F.call(this,e),D().call(this,e),this.addType(j().CADFace),this.addChildObjects(j().outputOnly,"rebuild",new(o().SFTime)),this.setBoundedObject(!0),this.setPointingObject(!0),this.setCollisionObject(!0),this.setShadowObject(!0),this.setVisibleObject(!0)}Object.assign(Object.setPrototypeOf(I.prototype,F.prototype),D().prototype,{initialize(){F.prototype.initialize.call(this),D().prototype.initialize.call(this),this._rebuild.addInterest("set_children__",this),this._bboxSize.addInterest("set_boundedObjects__",this),this._shape.addInterest("requestRebuild",this),this.set_children__()},getBBox(e,t){return this.isDefaultBBoxSize()?this.boundedObject?.getBBox(e,t)??e.set():e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},requestRebuild(){this._rebuild.addEvent()},set_children__(){this.setChild(B()(j().X3DChildNode,this._shape))},setChild(e){if(this.childNode){const e=this.childNode;e._isBoundedObject.removeInterest("requestRebuild",this),e._isPointingObject.removeInterest("requestRebuild",this),e._isCameraObject.removeInterest("requestRebuild",this),e._isPickableObject.removeInterest("requestRebuild",this),e._isCollisionObject.removeInterest("requestRebuild",this),e._isShadowObject.removeInterest("requestRebuild",this),e._isVisibleObject.removeInterest("requestRebuild",this),B()(j().X3DBoundedObject,e)&&(e._display.removeInterest("requestRebuild",this),e._bboxDisplay.removeInterest("requestRebuild",this))}if(this.childNode=null,this.boundedObject=null,this.pointingObject=null,this.cameraObject=null,this.pickableObject=null,this.collisionObject=null,this.shadowObject=null,this.visibleObject=null,this.bboxObject=null,e){const t=e.getType();for(let i=t.length-1;i>=0;--i){switch(t[i]){case j().LOD:case j().Transform:case j().X3DShapeNode:e._isBoundedObject.addInterest("requestRebuild",this),e._isPointingObject.addInterest("requestRebuild",this),e._isCameraObject.addInterest("requestRebuild",this),e._isPickableObject.addInterest("requestRebuild",this),e._isCollisionObject.addInterest("requestRebuild",this),e._isShadowObject.addInterest("requestRebuild",this),e._isVisibleObject.addInterest("requestRebuild",this),this.childNode=e,e.isVisible()&&(e.isBoundedObject()&&(this.boundedObject=e),e.isPointingObject()&&(this.pointingObject=e),e.isCameraObject()&&(this.cameraObject=e),e.isPickableObject()&&(this.pickableObject=e),e.isCollisionObject()&&(this.collisionObject=e),e.isShadowObject()&&(this.shadowObject=e),e.isVisibleObject()&&(this.visibleObject=e)),B()(j().X3DBoundedObject,e)&&(e._display.addInterest("requestRebuild",this),e._bboxDisplay.addInterest("requestRebuild",this),e.isBBoxVisible()&&(this.bboxObject=e));break;default:continue}break}}this.set_pointingObjects__(),this.set_cameraObjects__(),this.set_pickableObjects__(),this.set_collisionObjects__(),this.set_shadowObjects__(),this.set_visibleObjects__(),this.set_boundedObjects__()},set_boundedObjects__(){this.setBoundedObject(this.boundedObject||!this.isDefaultBBoxSize())},set_pointingObjects__(){this.setPointingObject(this.pointingObject)},set_cameraObjects__(){this.setCameraObject(this.cameraObject)},set_pickableObjects__(){this.setPickableObject(this.getTransformSensors().size||this.pickableObject)},set_collisionObjects__(){this.setCollisionObject(this.collisionObject)},set_shadowObjects__(){this.setShadowObject(this.shadowObject)},set_visibleObjects__(){this.setVisibleObject(this.visibleObject||this.bboxObject)},traverse(e,t){switch(e){case P().POINTER:return void this.pointingObject?.traverse(e,t);case P().CAMERA:return void this.cameraObject?.traverse(e,t);case P().PICKING:return void(this.getBrowser().getPickable().at(-1)?this.visibleObject?.traverse(e,t):this.pickableObject?.traverse(e,t));case P().COLLISION:return void this.collisionObject?.traverse(e,t);case P().SHADOW:return void this.shadowObject?.traverse(e,t);case P().DISPLAY:return this.visibleObject?.traverse(e,t),void this.bboxObject?.displayBBox(e,t)}},dispose(){D().prototype.dispose.call(this),F.prototype.dispose.call(this)}}),Object.defineProperties(I,{...c().getStaticProperties("CADFace","CADGeometry",2,"children","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOutput,"name",new(o().SFString)),new(l())(j().inputOutput,"visible",new(o().SFBool)(!0)),new(l())(j().inputOutput,"bboxDisplay",new(o().SFBool)),new(l())(j().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(l())(j().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(l())(j().inputOutput,"shape",new(o().SFNode))]),enumerable:!0}});const z=I,V=S().add("CADFace",z);function A(e){p().call(this,e),this.addType(j().CADLayer)}Object.setPrototypeOf(A.prototype,p().prototype),Object.defineProperties(A,{...c().getStaticProperties("CADLayer","CADGeometry",2,"children","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOutput,"name",new(o().SFString)),new(l())(j().inputOutput,"visible",new(o().SFBool)(!0)),new(l())(j().inputOutput,"bboxDisplay",new(o().SFBool)),new(l())(j().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(l())(j().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(l())(j().inputOnly,"addChildren",new(o().MFNode)),new(l())(j().inputOnly,"removeChildren",new(o().MFNode)),new(l())(j().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const R=A,q=S().add("CADLayer",R),T=e.X3DTransformNode;var X=t.n(T);function k(e){X().call(this,e),F.call(this,e),this.addType(j().CADPart)}Object.setPrototypeOf(k.prototype,X().prototype),Object.defineProperties(k,{...c().getStaticProperties("CADPart","CADGeometry",2,"children","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOutput,"name",new(o().SFString)),new(l())(j().inputOutput,"translation",new(o().SFVec3f)),new(l())(j().inputOutput,"rotation",new(o().SFRotation)),new(l())(j().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(l())(j().inputOutput,"scaleOrientation",new(o().SFRotation)),new(l())(j().inputOutput,"center",new(o().SFVec3f)),new(l())(j().inputOutput,"visible",new(o().SFBool)(!0)),new(l())(j().inputOutput,"bboxDisplay",new(o().SFBool)),new(l())(j().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(l())(j().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(l())(j().inputOnly,"addChildren",new(o().MFNode)),new(l())(j().inputOnly,"removeChildren",new(o().MFNode)),new(l())(j().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const M=k,G=S().add("CADPart",M),L=e.X3DComposedGeometryNode;var Q=t.n(L);function E(e){Q().call(this,e),this.addType(j().IndexedQuadSet)}Object.assign(Object.setPrototypeOf(E.prototype,Q().prototype),{initialize(){Q().prototype.initialize.call(this),this._set_index.addFieldInterest(this._index)},getTriangleIndex:(()=>{const e=[0,1,2,0,2,3];return function(t){const i=t%6;return(t-i)/6*4+e[i]}})(),getPolygonIndex(e){return this._index[e]},getVerticesPerPolygon:()=>4,getNumVertices(){return this.checkVertexCount(this._index.length,4)},build(){const e=this.getNumVertices();Q().prototype.build.call(this,4,e,6,e/4*6)}}),Object.defineProperties(E,{...c().getStaticProperties("IndexedQuadSet","CADGeometry",1,"geometry","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOnly,"set_index",new(o().MFInt32)),new(l())(j().initializeOnly,"solid",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"ccw",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"index",new(o().MFInt32)),new(l())(j().inputOutput,"attrib",new(o().MFNode)),new(l())(j().inputOutput,"fogCoord",new(o().SFNode)),new(l())(j().inputOutput,"color",new(o().SFNode)),new(l())(j().inputOutput,"texCoord",new(o().SFNode)),new(l())(j().inputOutput,"tangent",new(o().SFNode)),new(l())(j().inputOutput,"normal",new(o().SFNode)),new(l())(j().inputOutput,"coord",new(o().SFNode))]),enumerable:!0}});const H=E,K=S().add("IndexedQuadSet",H);function W(e){Q().call(this,e),this.addType(j().QuadSet)}Object.assign(Object.setPrototypeOf(W.prototype,Q().prototype),{getTriangleIndex:(()=>{const e=[0,1,2,0,2,3];return function(t){const i=t%6;return(t-i)/6*4+e[i]}})(),getVerticesPerPolygon:()=>4,getNumVertices(){return this.checkVertexCount(this.getCoord()?.getSize()??0,4)},build(){const e=this.getNumVertices();Q().prototype.build.call(this,4,e,6,e/4*6)},createNormals(e,t,i){return this.createFaceNormals(e,t,i)}}),Object.defineProperties(W,{...c().getStaticProperties("QuadSet","CADGeometry",1,"geometry","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().initializeOnly,"solid",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"ccw",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(l())(j().inputOutput,"attrib",new(o().MFNode)),new(l())(j().inputOutput,"fogCoord",new(o().SFNode)),new(l())(j().inputOutput,"color",new(o().SFNode)),new(l())(j().inputOutput,"texCoord",new(o().SFNode)),new(l())(j().inputOutput,"tangent",new(o().SFNode)),new(l())(j().inputOutput,"normal",new(o().SFNode)),new(l())(j().inputOutput,"coord",new(o().SFNode))]),enumerable:!0}});const Y=W,J=S().add("QuadSet",Y);n().add({name:"CADGeometry",concreteNodes:[v,V,q,G,K,J],abstractNodes:[F]});S().add("CADGeometryComponent",undefined)})();
|
|
1
|
+
/* X_ITE v11.5.14 */
|
|
2
|
+
const e=window[Symbol.for("X_ITE.X3D-11.5.14")];(()=>{var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const i=e.Components;var n=t.n(i);const s=e.Fields;var o=t.n(s);const r=e.X3DFieldDefinition;var l=t.n(r);const d=e.FieldDefinitionArray;var u=t.n(d);const a=e.X3DNode;var c=t.n(a);const b=e.X3DGroupingNode;var p=t.n(b);const O=e.X3DChildNode;var h=t.n(O);const w=e.X3DConstants;var j=t.n(w);const y=e.Namespace;var S=t.n(y);function _(e){h().call(this,e),this.addType(j().X3DProductStructureChildNode)}Object.setPrototypeOf(_.prototype,h().prototype),Object.defineProperties(_,c().getStaticProperties("X3DProductStructureChildNode","CADGeometry",2));const m=_,F=S().add("X3DProductStructureChildNode",m);function f(e){p().call(this,e),F.call(this,e),this.addType(j().CADAssembly)}Object.setPrototypeOf(f.prototype,p().prototype),Object.defineProperties(f,{...c().getStaticProperties("CADAssembly","CADGeometry",2,"children","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOutput,"name",new(o().SFString)),new(l())(j().inputOutput,"visible",new(o().SFBool)(!0)),new(l())(j().inputOutput,"bboxDisplay",new(o().SFBool)),new(l())(j().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(l())(j().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(l())(j().inputOnly,"addChildren",new(o().MFNode)),new(l())(j().inputOnly,"removeChildren",new(o().MFNode)),new(l())(j().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const C=f,v=S().add("CADAssembly",C),g=e.X3DBoundedObject;var D=t.n(g);const N=e.TraverseType;var P=t.n(N);const x=e.X3DCast;var B=t.n(x);function I(e){F.call(this,e),D().call(this,e),this.addType(j().CADFace),this.addChildObjects(j().outputOnly,"rebuild",new(o().SFTime)),this.setBoundedObject(!0),this.setPointingObject(!0),this.setCollisionObject(!0),this.setShadowObject(!0),this.setVisibleObject(!0)}Object.assign(Object.setPrototypeOf(I.prototype,F.prototype),D().prototype,{initialize(){F.prototype.initialize.call(this),D().prototype.initialize.call(this),this._rebuild.addInterest("set_children__",this),this._bboxSize.addInterest("set_boundedObjects__",this),this._shape.addInterest("requestRebuild",this),this.set_children__()},getBBox(e,t){return this.isDefaultBBoxSize()?this.boundedObject?.getBBox(e,t)??e.set():e.set(this._bboxSize.getValue(),this._bboxCenter.getValue())},requestRebuild(){this._rebuild.addEvent()},set_children__(){this.setChild(B()(j().X3DChildNode,this._shape))},setChild(e){if(this.childNode){const e=this.childNode;e._isBoundedObject.removeInterest("requestRebuild",this),e._isPointingObject.removeInterest("requestRebuild",this),e._isCameraObject.removeInterest("requestRebuild",this),e._isPickableObject.removeInterest("requestRebuild",this),e._isCollisionObject.removeInterest("requestRebuild",this),e._isShadowObject.removeInterest("requestRebuild",this),e._isVisibleObject.removeInterest("requestRebuild",this),B()(j().X3DBoundedObject,e)&&(e._display.removeInterest("requestRebuild",this),e._bboxDisplay.removeInterest("requestRebuild",this))}if(this.childNode=null,this.boundedObject=null,this.pointingObject=null,this.cameraObject=null,this.pickableObject=null,this.collisionObject=null,this.shadowObject=null,this.visibleObject=null,this.bboxObject=null,e){const t=e.getType();for(let i=t.length-1;i>=0;--i){switch(t[i]){case j().LOD:case j().Transform:case j().X3DShapeNode:e._isBoundedObject.addInterest("requestRebuild",this),e._isPointingObject.addInterest("requestRebuild",this),e._isCameraObject.addInterest("requestRebuild",this),e._isPickableObject.addInterest("requestRebuild",this),e._isCollisionObject.addInterest("requestRebuild",this),e._isShadowObject.addInterest("requestRebuild",this),e._isVisibleObject.addInterest("requestRebuild",this),this.childNode=e,e.isVisible()&&(e.isBoundedObject()&&(this.boundedObject=e),e.isPointingObject()&&(this.pointingObject=e),e.isCameraObject()&&(this.cameraObject=e),e.isPickableObject()&&(this.pickableObject=e),e.isCollisionObject()&&(this.collisionObject=e),e.isShadowObject()&&(this.shadowObject=e),e.isVisibleObject()&&(this.visibleObject=e)),B()(j().X3DBoundedObject,e)&&(e._display.addInterest("requestRebuild",this),e._bboxDisplay.addInterest("requestRebuild",this),e.isBBoxVisible()&&(this.bboxObject=e));break;default:continue}break}}this.set_pointingObjects__(),this.set_cameraObjects__(),this.set_pickableObjects__(),this.set_collisionObjects__(),this.set_shadowObjects__(),this.set_visibleObjects__(),this.set_boundedObjects__()},set_boundedObjects__(){this.setBoundedObject(this.boundedObject||!this.isDefaultBBoxSize())},set_pointingObjects__(){this.setPointingObject(this.pointingObject)},set_cameraObjects__(){this.setCameraObject(this.cameraObject)},set_pickableObjects__(){this.setPickableObject(this.getTransformSensors().size||this.pickableObject)},set_collisionObjects__(){this.setCollisionObject(this.collisionObject)},set_shadowObjects__(){this.setShadowObject(this.shadowObject)},set_visibleObjects__(){this.setVisibleObject(this.visibleObject||this.bboxObject)},traverse(e,t){switch(e){case P().POINTER:return void this.pointingObject?.traverse(e,t);case P().CAMERA:return void this.cameraObject?.traverse(e,t);case P().PICKING:return void(this.getBrowser().getPickable().at(-1)?this.visibleObject?.traverse(e,t):this.pickableObject?.traverse(e,t));case P().COLLISION:return void this.collisionObject?.traverse(e,t);case P().SHADOW:return void this.shadowObject?.traverse(e,t);case P().DISPLAY:return this.visibleObject?.traverse(e,t),void this.bboxObject?.displayBBox(e,t)}},dispose(){D().prototype.dispose.call(this),F.prototype.dispose.call(this)}}),Object.defineProperties(I,{...c().getStaticProperties("CADFace","CADGeometry",2,"children","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOutput,"name",new(o().SFString)),new(l())(j().inputOutput,"visible",new(o().SFBool)(!0)),new(l())(j().inputOutput,"bboxDisplay",new(o().SFBool)),new(l())(j().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(l())(j().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(l())(j().inputOutput,"shape",new(o().SFNode))]),enumerable:!0}});const z=I,V=S().add("CADFace",z);function A(e){p().call(this,e),this.addType(j().CADLayer)}Object.setPrototypeOf(A.prototype,p().prototype),Object.defineProperties(A,{...c().getStaticProperties("CADLayer","CADGeometry",2,"children","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOutput,"name",new(o().SFString)),new(l())(j().inputOutput,"visible",new(o().SFBool)(!0)),new(l())(j().inputOutput,"bboxDisplay",new(o().SFBool)),new(l())(j().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(l())(j().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(l())(j().inputOnly,"addChildren",new(o().MFNode)),new(l())(j().inputOnly,"removeChildren",new(o().MFNode)),new(l())(j().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const R=A,q=S().add("CADLayer",R),T=e.X3DTransformNode;var X=t.n(T);function k(e){X().call(this,e),F.call(this,e),this.addType(j().CADPart)}Object.setPrototypeOf(k.prototype,X().prototype),Object.defineProperties(k,{...c().getStaticProperties("CADPart","CADGeometry",2,"children","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOutput,"name",new(o().SFString)),new(l())(j().inputOutput,"translation",new(o().SFVec3f)),new(l())(j().inputOutput,"rotation",new(o().SFRotation)),new(l())(j().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(l())(j().inputOutput,"scaleOrientation",new(o().SFRotation)),new(l())(j().inputOutput,"center",new(o().SFVec3f)),new(l())(j().inputOutput,"visible",new(o().SFBool)(!0)),new(l())(j().inputOutput,"bboxDisplay",new(o().SFBool)),new(l())(j().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(l())(j().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(l())(j().inputOnly,"addChildren",new(o().MFNode)),new(l())(j().inputOnly,"removeChildren",new(o().MFNode)),new(l())(j().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const M=k,G=S().add("CADPart",M),L=e.X3DComposedGeometryNode;var Q=t.n(L);function E(e){Q().call(this,e),this.addType(j().IndexedQuadSet)}Object.assign(Object.setPrototypeOf(E.prototype,Q().prototype),{initialize(){Q().prototype.initialize.call(this),this._set_index.addFieldInterest(this._index)},getTriangleIndex:(()=>{const e=[0,1,2,0,2,3];return function(t){const i=t%6;return(t-i)/6*4+e[i]}})(),getPolygonIndex(e){return this._index[e]},getVerticesPerPolygon:()=>4,getNumVertices(){return this.checkVertexCount(this._index.length,4)},build(){const e=this.getNumVertices();Q().prototype.build.call(this,4,e,6,e/4*6)}}),Object.defineProperties(E,{...c().getStaticProperties("IndexedQuadSet","CADGeometry",1,"geometry","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().inputOnly,"set_index",new(o().MFInt32)),new(l())(j().initializeOnly,"solid",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"ccw",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"index",new(o().MFInt32)),new(l())(j().inputOutput,"attrib",new(o().MFNode)),new(l())(j().inputOutput,"fogCoord",new(o().SFNode)),new(l())(j().inputOutput,"color",new(o().SFNode)),new(l())(j().inputOutput,"texCoord",new(o().SFNode)),new(l())(j().inputOutput,"tangent",new(o().SFNode)),new(l())(j().inputOutput,"normal",new(o().SFNode)),new(l())(j().inputOutput,"coord",new(o().SFNode))]),enumerable:!0}});const H=E,K=S().add("IndexedQuadSet",H);function W(e){Q().call(this,e),this.addType(j().QuadSet)}Object.assign(Object.setPrototypeOf(W.prototype,Q().prototype),{getTriangleIndex:(()=>{const e=[0,1,2,0,2,3];return function(t){const i=t%6;return(t-i)/6*4+e[i]}})(),getVerticesPerPolygon:()=>4,getNumVertices(){return this.checkVertexCount(this.getCoord()?.getSize()??0,4)},build(){const e=this.getNumVertices();Q().prototype.build.call(this,4,e,6,e/4*6)},createNormals(e,t,i){return this.createFaceNormals(e,t,i)}}),Object.defineProperties(W,{...c().getStaticProperties("QuadSet","CADGeometry",1,"geometry","3.1"),fieldDefinitions:{value:new(u())([new(l())(j().inputOutput,"metadata",new(o().SFNode)),new(l())(j().initializeOnly,"solid",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"ccw",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"colorPerVertex",new(o().SFBool)(!0)),new(l())(j().initializeOnly,"normalPerVertex",new(o().SFBool)(!0)),new(l())(j().inputOutput,"attrib",new(o().MFNode)),new(l())(j().inputOutput,"fogCoord",new(o().SFNode)),new(l())(j().inputOutput,"color",new(o().SFNode)),new(l())(j().inputOutput,"texCoord",new(o().SFNode)),new(l())(j().inputOutput,"tangent",new(o().SFNode)),new(l())(j().inputOutput,"normal",new(o().SFNode)),new(l())(j().inputOutput,"coord",new(o().SFNode))]),enumerable:!0}});const Y=W,J=S().add("QuadSet",Y);n().add({name:"CADGeometry",concreteNodes:[v,V,q,G,K,J],abstractNodes:[F]});S().add("CADGeometryComponent",undefined)})();
|