x_ite 8.11.7 → 8.11.9
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 -0
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +23 -23
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +26 -26
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +17 -17
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +37 -37
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +18 -18
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +159 -145
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/package.json +16 -13
- package/.github/workflows/pages-deploy.yml +0 -64
- package/.vscode/launch.json +0 -15
- package/.vscode/settings.json +0 -44
- package/.vscode/tasks.json +0 -31
- package/Makefile +0 -82
- package/build/bin/bump.pl +0 -21
- package/build/bin/tests.pl +0 -203
- package/build/bin/version.pl +0 -157
- package/build/docs/components.js +0 -218
- package/build/docs/glTF-samples.pl +0 -151
- package/build/docs/nodes.pl +0 -434
- package/build/docs/tags.pl +0 -28
- package/build/src/nodes.pl +0 -41
- package/docs/Gemfile +0 -19
- package/docs/LICENSE +0 -21
- package/docs/README.md +0 -46
- package/docs/_config.yml +0 -203
- package/docs/_data/assets/cross_origin.yml +0 -62
- package/docs/_data/assets/self_host.yml +0 -51
- package/docs/_data/contact.yml +0 -30
- package/docs/_data/locales/bg-BG.yml +0 -83
- package/docs/_data/locales/de-DE.yml +0 -82
- package/docs/_data/locales/en.yml +0 -93
- package/docs/_data/locales/es-ES.yml +0 -79
- package/docs/_data/locales/fr-FR.yml +0 -79
- package/docs/_data/locales/hu-HU.yml +0 -81
- package/docs/_data/locales/id-ID.yml +0 -79
- package/docs/_data/locales/ko-KR.yml +0 -86
- package/docs/_data/locales/my-MM.yml +0 -79
- package/docs/_data/locales/pt-BR.yml +0 -79
- package/docs/_data/locales/ru-RU.yml +0 -79
- package/docs/_data/locales/tr-TR.yml +0 -79
- package/docs/_data/locales/uk-UA.yml +0 -79
- package/docs/_data/locales/vi-VN.yml +0 -77
- package/docs/_data/locales/zh-CN.yml +0 -85
- package/docs/_data/nav/components-CADGeometry.yml +0 -14
- package/docs/_data/nav/components-Core.yml +0 -16
- package/docs/_data/nav/components-CubeMapTexturing.yml +0 -8
- package/docs/_data/nav/components-DIS.yml +0 -14
- package/docs/_data/nav/components-EnvironmentalEffects.yml +0 -12
- package/docs/_data/nav/components-EnvironmentalSensor.yml +0 -8
- package/docs/_data/nav/components-EventUtilities.yml +0 -16
- package/docs/_data/nav/components-Followers.yml +0 -30
- package/docs/_data/nav/components-Geometry2D.yml +0 -18
- package/docs/_data/nav/components-Geometry3D.yml +0 -16
- package/docs/_data/nav/components-Geospatial.yml +0 -24
- package/docs/_data/nav/components-Grouping.yml +0 -10
- package/docs/_data/nav/components-HAnim.yml +0 -14
- package/docs/_data/nav/components-Interpolation.yml +0 -28
- package/docs/_data/nav/components-KeyDeviceSensor.yml +0 -6
- package/docs/_data/nav/components-Layering.yml +0 -8
- package/docs/_data/nav/components-Layout.yml +0 -12
- package/docs/_data/nav/components-Lighting.yml +0 -10
- package/docs/_data/nav/components-NURBS.yml +0 -30
- package/docs/_data/nav/components-Navigation.yml +0 -16
- package/docs/_data/nav/components-Networking.yml +0 -8
- package/docs/_data/nav/components-ParticleSystems.yml +0 -22
- package/docs/_data/nav/components-Picking.yml +0 -12
- package/docs/_data/nav/components-PointingDeviceSensor.yml +0 -10
- package/docs/_data/nav/components-Rendering.yml +0 -30
- package/docs/_data/nav/components-RigidBodyPhysics.yml +0 -30
- package/docs/_data/nav/components-Scripting.yml +0 -4
- package/docs/_data/nav/components-Shaders.yml +0 -18
- package/docs/_data/nav/components-Shape.yml +0 -22
- package/docs/_data/nav/components-Sound.yml +0 -44
- package/docs/_data/nav/components-Text.yml +0 -6
- package/docs/_data/nav/components-TextureProjector.yml +0 -6
- package/docs/_data/nav/components-Texturing.yml +0 -22
- package/docs/_data/nav/components-Texturing3D.yml +0 -18
- package/docs/_data/nav/components-Time.yml +0 -4
- package/docs/_data/nav/components-VolumeRendering.yml +0 -28
- package/docs/_data/nav/components-X_ITE.yml +0 -4
- package/docs/_data/nav/main.yml +0 -26
- package/docs/_data/nav/reference.yml +0 -18
- package/docs/_data/nav/tutorials-animation-sensors-and-geometry.yml +0 -18
- package/docs/_data/nav/tutorials-basic.yml +0 -6
- package/docs/_data/nav/tutorials-optimize-your-scene.yml +0 -6
- package/docs/_data/nav/tutorials-scripts-and-prototypes.yml +0 -12
- package/docs/_data/nav/tutorials-shapes-geometry-and-appearance.yml +0 -16
- package/docs/_data/nav/tutorials-textures-lights-and-environment.yml +0 -20
- package/docs/_data/share.yml +0 -27
- package/docs/_includes/nav.html +0 -19
- package/docs/_includes/scripts.html +0 -3
- package/docs/_layouts/compress.html +0 -11
- package/docs/_layouts/redirect-page.html +0 -6
- package/docs/_layouts/wide.html +0 -52
- package/docs/_layouts/wrap.html +0 -4
- package/docs/_layouts/x_ite.html +0 -8
- package/docs/_plugins/no_date.rb +0 -11
- package/docs/_plugins/posts-lastmod-hook.rb +0 -14
- package/docs/_posts/accessing-the-external-browser.md +0 -312
- package/docs/_posts/browser-support.md +0 -53
- package/docs/_posts/components/CADGeometry/CADAssembly.md +0 -126
- package/docs/_posts/components/CADGeometry/CADFace.md +0 -113
- package/docs/_posts/components/CADGeometry/CADLayer.md +0 -126
- package/docs/_posts/components/CADGeometry/CADPart.md +0 -164
- package/docs/_posts/components/CADGeometry/IndexedQuadSet.md +0 -154
- package/docs/_posts/components/CADGeometry/QuadSet.md +0 -145
- package/docs/_posts/components/Core/MetadataBoolean.md +0 -83
- package/docs/_posts/components/Core/MetadataDouble.md +0 -84
- package/docs/_posts/components/Core/MetadataFloat.md +0 -84
- package/docs/_posts/components/Core/MetadataInteger.md +0 -83
- package/docs/_posts/components/Core/MetadataSet.md +0 -80
- package/docs/_posts/components/Core/MetadataString.md +0 -83
- package/docs/_posts/components/Core/WorldInfo.md +0 -65
- package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +0 -123
- package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +0 -82
- package/docs/_posts/components/CubeMapTexturing/ImageCubeMapTexture.md +0 -112
- package/docs/_posts/components/DIS/DISEntityManager.md +0 -98
- package/docs/_posts/components/DIS/DISEntityTypeMapping.md +0 -131
- package/docs/_posts/components/DIS/EspduTransform.md +0 -566
- package/docs/_posts/components/DIS/ReceiverPdu.md +0 -235
- package/docs/_posts/components/DIS/SignalPdu.md +0 -239
- package/docs/_posts/components/DIS/TransmitterPdu.md +0 -299
- package/docs/_posts/components/EnvironmentalEffects/Background.md +0 -230
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +0 -118
- package/docs/_posts/components/EnvironmentalEffects/FogCoordinate.md +0 -44
- package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +0 -91
- package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +0 -194
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +0 -118
- package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +0 -115
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +0 -89
- package/docs/_posts/components/EventUtilities/BooleanFilter.md +0 -75
- package/docs/_posts/components/EventUtilities/BooleanSequencer.md +0 -115
- package/docs/_posts/components/EventUtilities/BooleanToggle.md +0 -67
- package/docs/_posts/components/EventUtilities/BooleanTrigger.md +0 -64
- package/docs/_posts/components/EventUtilities/IntegerSequencer.md +0 -119
- package/docs/_posts/components/EventUtilities/IntegerTrigger.md +0 -76
- package/docs/_posts/components/EventUtilities/TimeTrigger.md +0 -68
- package/docs/_posts/components/Followers/ColorChaser.md +0 -101
- package/docs/_posts/components/Followers/ColorDamper.md +0 -105
- package/docs/_posts/components/Followers/CoordinateChaser.md +0 -100
- package/docs/_posts/components/Followers/CoordinateDamper.md +0 -100
- package/docs/_posts/components/Followers/OrientationChaser.md +0 -96
- package/docs/_posts/components/Followers/OrientationDamper.md +0 -100
- package/docs/_posts/components/Followers/PositionChaser.md +0 -96
- package/docs/_posts/components/Followers/PositionChaser2D.md +0 -96
- package/docs/_posts/components/Followers/PositionDamper.md +0 -100
- package/docs/_posts/components/Followers/PositionDamper2D.md +0 -100
- package/docs/_posts/components/Followers/ScalarChaser.md +0 -100
- package/docs/_posts/components/Followers/ScalarDamper.md +0 -100
- package/docs/_posts/components/Followers/TexCoordChaser2D.md +0 -96
- package/docs/_posts/components/Followers/TexCoordDamper2D.md +0 -100
- package/docs/_posts/components/Geometry2D/Arc2D.md +0 -96
- package/docs/_posts/components/Geometry2D/ArcClose2D.md +0 -115
- package/docs/_posts/components/Geometry2D/Circle2D.md +0 -66
- package/docs/_posts/components/Geometry2D/Disk2D.md +0 -93
- package/docs/_posts/components/Geometry2D/Polyline2D.md +0 -69
- package/docs/_posts/components/Geometry2D/Polypoint2D.md +0 -62
- package/docs/_posts/components/Geometry2D/Rectangle2D.md +0 -77
- package/docs/_posts/components/Geometry2D/TriangleSet2D.md +0 -77
- package/docs/_posts/components/Geometry3D/Box.md +0 -79
- package/docs/_posts/components/Geometry3D/Cone.md +0 -98
- package/docs/_posts/components/Geometry3D/Cylinder.md +0 -102
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +0 -206
- package/docs/_posts/components/Geometry3D/Extrusion.md +0 -222
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +0 -260
- package/docs/_posts/components/Geometry3D/Sphere.md +0 -78
- package/docs/_posts/components/Geospatial/GeoCoordinate.md +0 -81
- package/docs/_posts/components/Geospatial/GeoElevationGrid.md +0 -225
- package/docs/_posts/components/Geospatial/GeoLOD.md +0 -184
- package/docs/_posts/components/Geospatial/GeoLocation.md +0 -148
- package/docs/_posts/components/Geospatial/GeoMetadata.md +0 -117
- package/docs/_posts/components/Geospatial/GeoOrigin.md +0 -84
- package/docs/_posts/components/Geospatial/GeoPositionInterpolator.md +0 -141
- package/docs/_posts/components/Geospatial/GeoProximitySensor.md +0 -158
- package/docs/_posts/components/Geospatial/GeoTouchSensor.md +0 -153
- package/docs/_posts/components/Geospatial/GeoTransform.md +0 -182
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +0 -214
- package/docs/_posts/components/Grouping/Group.md +0 -108
- package/docs/_posts/components/Grouping/StaticGroup.md +0 -103
- package/docs/_posts/components/Grouping/Switch.md +0 -125
- package/docs/_posts/components/Grouping/Transform.md +0 -160
- package/docs/_posts/components/HAnim/HAnimDisplacer.md +0 -108
- package/docs/_posts/components/HAnim/HAnimHumanoid.md +0 -351
- package/docs/_posts/components/HAnim/HAnimJoint.md +0 -256
- package/docs/_posts/components/HAnim/HAnimMotion.md +0 -186
- package/docs/_posts/components/HAnim/HAnimSegment.md +0 -172
- package/docs/_posts/components/HAnim/HAnimSite.md +0 -176
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +0 -103
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +0 -102
- package/docs/_posts/components/Interpolation/CoordinateInterpolator2D.md +0 -102
- package/docs/_posts/components/Interpolation/EaseInEaseOut.md +0 -91
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +0 -98
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +0 -102
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +0 -102
- package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +0 -106
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +0 -102
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator.md +0 -118
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator2D.md +0 -118
- package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +0 -122
- package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +0 -102
- package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +0 -120
- package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +0 -92
- package/docs/_posts/components/Layering/Layer.md +0 -92
- package/docs/_posts/components/Layering/LayerSet.md +0 -84
- package/docs/_posts/components/Layering/Viewport.md +0 -113
- package/docs/_posts/components/Layout/Layout.md +0 -118
- package/docs/_posts/components/Layout/LayoutGroup.md +0 -118
- package/docs/_posts/components/Layout/LayoutLayer.md +0 -99
- package/docs/_posts/components/Layout/ScreenFontStyle.md +0 -164
- package/docs/_posts/components/Layout/ScreenGroup.md +0 -104
- package/docs/_posts/components/Lighting/DirectionalLight.md +0 -108
- package/docs/_posts/components/Lighting/EnvironmentLight.md +0 -87
- package/docs/_posts/components/Lighting/PointLight.md +0 -115
- package/docs/_posts/components/Lighting/SpotLight.md +0 -145
- package/docs/_posts/components/NURBS/Contour2D.md +0 -65
- package/docs/_posts/components/NURBS/ContourPolyline2D.md +0 -50
- package/docs/_posts/components/NURBS/CoordinateDouble.md +0 -51
- package/docs/_posts/components/NURBS/NurbsCurve.md +0 -75
- package/docs/_posts/components/NURBS/NurbsCurve2D.md +0 -70
- package/docs/_posts/components/NURBS/NurbsOrientationInterpolator.md +0 -86
- package/docs/_posts/components/NURBS/NurbsPatchSurface.md +0 -112
- package/docs/_posts/components/NURBS/NurbsPositionInterpolator.md +0 -86
- package/docs/_posts/components/NURBS/NurbsSet.md +0 -117
- package/docs/_posts/components/NURBS/NurbsSurfaceInterpolator.md +0 -110
- package/docs/_posts/components/NURBS/NurbsSweptSurface.md +0 -86
- package/docs/_posts/components/NURBS/NurbsSwungSurface.md +0 -76
- package/docs/_posts/components/NURBS/NurbsTextureCoordinate.md +0 -81
- package/docs/_posts/components/NURBS/NurbsTrimmedSurface.md +0 -124
- package/docs/_posts/components/Navigation/Billboard.md +0 -121
- package/docs/_posts/components/Navigation/Collision.md +0 -156
- package/docs/_posts/components/Navigation/LOD.md +0 -146
- package/docs/_posts/components/Navigation/NavigationInfo.md +0 -170
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +0 -209
- package/docs/_posts/components/Navigation/Viewpoint.md +0 -213
- package/docs/_posts/components/Navigation/ViewpointGroup.md +0 -91
- package/docs/_posts/components/Networking/Anchor.md +0 -160
- package/docs/_posts/components/Networking/Inline.md +0 -161
- package/docs/_posts/components/Networking/LoadSensor.md +0 -123
- package/docs/_posts/components/ParticleSystems/BoundedPhysicsModel.md +0 -62
- package/docs/_posts/components/ParticleSystems/ConeEmitter.md +0 -95
- package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +0 -83
- package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +0 -65
- package/docs/_posts/components/ParticleSystems/ParticleSystem.md +0 -249
- package/docs/_posts/components/ParticleSystems/PointEmitter.md +0 -87
- package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +0 -106
- package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +0 -101
- package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +0 -109
- package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +0 -72
- package/docs/_posts/components/Picking/LinePickSensor.md +0 -151
- package/docs/_posts/components/Picking/PickableGroup.md +0 -128
- package/docs/_posts/components/Picking/PointPickSensor.md +0 -133
- package/docs/_posts/components/Picking/PrimitivePickSensor.md +0 -126
- package/docs/_posts/components/Picking/VolumePickSensor.md +0 -124
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +0 -147
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +0 -137
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +0 -111
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +0 -121
- package/docs/_posts/components/Rendering/ClipPlane.md +0 -72
- package/docs/_posts/components/Rendering/Color.md +0 -56
- package/docs/_posts/components/Rendering/ColorRGBA.md +0 -65
- package/docs/_posts/components/Rendering/Coordinate.md +0 -49
- package/docs/_posts/components/Rendering/IndexedLineSet.md +0 -156
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +0 -149
- package/docs/_posts/components/Rendering/IndexedTriangleSet.md +0 -149
- package/docs/_posts/components/Rendering/IndexedTriangleStripSet.md +0 -141
- package/docs/_posts/components/Rendering/LineSet.md +0 -97
- package/docs/_posts/components/Rendering/Normal.md +0 -63
- package/docs/_posts/components/Rendering/PointSet.md +0 -89
- package/docs/_posts/components/Rendering/TriangleFanSet.md +0 -137
- package/docs/_posts/components/Rendering/TriangleSet.md +0 -133
- package/docs/_posts/components/Rendering/TriangleStripSet.md +0 -141
- package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +0 -90
- package/docs/_posts/components/RigidBodyPhysics/CollidableOffset.md +0 -115
- package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +0 -118
- package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +0 -95
- package/docs/_posts/components/RigidBodyPhysics/CollisionSensor.md +0 -74
- package/docs/_posts/components/RigidBodyPhysics/CollisionSpace.md +0 -106
- package/docs/_posts/components/RigidBodyPhysics/Contact.md +0 -121
- package/docs/_posts/components/RigidBodyPhysics/DoubleAxisHingeJoint.md +0 -164
- package/docs/_posts/components/RigidBodyPhysics/MotorJoint.md +0 -235
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +0 -185
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +0 -136
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +0 -118
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +0 -118
- package/docs/_posts/components/RigidBodyPhysics/UniversalJoint.md +0 -127
- package/docs/_posts/components/Scripting/Script.md +0 -139
- package/docs/_posts/components/Shaders/ComposedShader.md +0 -94
- package/docs/_posts/components/Shaders/FloatVertexAttribute.md +0 -74
- package/docs/_posts/components/Shaders/Matrix3VertexAttribute.md +0 -62
- package/docs/_posts/components/Shaders/Matrix4VertexAttribute.md +0 -62
- package/docs/_posts/components/Shaders/PackagedShader.md +0 -137
- package/docs/_posts/components/Shaders/ProgramShader.md +0 -91
- package/docs/_posts/components/Shaders/ShaderPart.md +0 -127
- package/docs/_posts/components/Shaders/ShaderProgram.md +0 -121
- package/docs/_posts/components/Shape/AcousticProperties.md +0 -80
- package/docs/_posts/components/Shape/Appearance.md +0 -130
- package/docs/_posts/components/Shape/FillProperties.md +0 -74
- package/docs/_posts/components/Shape/LineProperties.md +0 -71
- package/docs/_posts/components/Shape/Material.md +0 -235
- package/docs/_posts/components/Shape/PhysicalMaterial.md +0 -189
- package/docs/_posts/components/Shape/PointProperties.md +0 -83
- package/docs/_posts/components/Shape/Shape.md +0 -107
- package/docs/_posts/components/Shape/TwoSidedMaterial.md +0 -148
- package/docs/_posts/components/Shape/UnlitMaterial.md +0 -119
- package/docs/_posts/components/Sound/Analyser.md +0 -205
- package/docs/_posts/components/Sound/AudioClip.md +0 -223
- package/docs/_posts/components/Sound/AudioDestination.md +0 -128
- package/docs/_posts/components/Sound/BiquadFilter.md +0 -213
- package/docs/_posts/components/Sound/BufferAudioSource.md +0 -284
- package/docs/_posts/components/Sound/ChannelMerger.md +0 -108
- package/docs/_posts/components/Sound/ChannelSelector.md +0 -112
- package/docs/_posts/components/Sound/ChannelSplitter.md +0 -116
- package/docs/_posts/components/Sound/Convolver.md +0 -190
- package/docs/_posts/components/Sound/Delay.md +0 -185
- package/docs/_posts/components/Sound/DynamicsCompressor.md +0 -201
- package/docs/_posts/components/Sound/Gain.md +0 -177
- package/docs/_posts/components/Sound/ListenerPointSource.md +0 -171
- package/docs/_posts/components/Sound/MicrophoneSource.md +0 -145
- package/docs/_posts/components/Sound/OscillatorSource.md +0 -153
- package/docs/_posts/components/Sound/PeriodicWave.md +0 -83
- package/docs/_posts/components/Sound/Sound.md +0 -139
- package/docs/_posts/components/Sound/SpatialSound.md +0 -187
- package/docs/_posts/components/Sound/StreamAudioDestination.md +0 -132
- package/docs/_posts/components/Sound/StreamAudioSource.md +0 -145
- package/docs/_posts/components/Sound/WaveShaper.md +0 -189
- package/docs/_posts/components/Text/FontStyle.md +0 -171
- package/docs/_posts/components/Text/Text.md +0 -124
- package/docs/_posts/components/TextureProjector/TextureProjector.md +0 -111
- package/docs/_posts/components/TextureProjector/TextureProjectorParallel.md +0 -112
- package/docs/_posts/components/Texturing/ImageTexture.md +0 -138
- package/docs/_posts/components/Texturing/MovieTexture.md +0 -264
- package/docs/_posts/components/Texturing/MultiTexture.md +0 -128
- package/docs/_posts/components/Texturing/MultiTextureCoordinate.md +0 -64
- package/docs/_posts/components/Texturing/MultiTextureTransform.md +0 -69
- package/docs/_posts/components/Texturing/PixelTexture.md +0 -100
- package/docs/_posts/components/Texturing/TextureCoordinate.md +0 -62
- package/docs/_posts/components/Texturing/TextureCoordinateGenerator.md +0 -74
- package/docs/_posts/components/Texturing/TextureProperties.md +0 -162
- package/docs/_posts/components/Texturing/TextureTransform.md +0 -82
- package/docs/_posts/components/Texturing3D/ComposedTexture3D.md +0 -84
- package/docs/_posts/components/Texturing3D/ImageTexture3D.md +0 -141
- package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +0 -137
- package/docs/_posts/components/Texturing3D/PixelTexture3D.md +0 -87
- package/docs/_posts/components/Texturing3D/TextureCoordinate3D.md +0 -65
- package/docs/_posts/components/Texturing3D/TextureCoordinate4D.md +0 -64
- package/docs/_posts/components/Texturing3D/TextureTransform3D.md +0 -78
- package/docs/_posts/components/Texturing3D/TextureTransformMatrix3D.md +0 -67
- package/docs/_posts/components/Time/TimeSensor.md +0 -187
- package/docs/_posts/components/VolumeRendering/BlendedVolumeStyle.md +0 -113
- package/docs/_posts/components/VolumeRendering/BoundaryEnhancementVolumeStyle.md +0 -63
- package/docs/_posts/components/VolumeRendering/CartoonVolumeStyle.md +0 -86
- package/docs/_posts/components/VolumeRendering/ComposedVolumeStyle.md +0 -59
- package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +0 -75
- package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +0 -138
- package/docs/_posts/components/VolumeRendering/OpacityMapVolumeStyle.md +0 -59
- package/docs/_posts/components/VolumeRendering/ProjectionVolumeStyle.md +0 -70
- package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +0 -130
- package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +0 -83
- package/docs/_posts/components/VolumeRendering/SilhouetteEnhancementVolumeStyle.md +0 -71
- package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +0 -80
- package/docs/_posts/components/VolumeRendering/VolumeData.md +0 -105
- package/docs/_posts/components/X_ITE/BlendMode.md +0 -101
- package/docs/_posts/custom-shaders.md +0 -720
- package/docs/_posts/dom-integration.md +0 -237
- package/docs/_posts/features.md +0 -56
- package/docs/_posts/getting-started.md +0 -845
- package/docs/_posts/glossary.md +0 -344
- package/docs/_posts/how-to-configure-your-web-server.md +0 -61
- package/docs/_posts/laboratory/x3d-file-converter.md +0 -188
- package/docs/_posts/reference/browser-services.md +0 -466
- package/docs/_posts/reference/constants-services.md +0 -381
- package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +0 -50
- package/docs/_posts/reference/field-services-and-objects.md +0 -1137
- package/docs/_posts/reference/prototype-services.md +0 -146
- package/docs/_posts/reference/route-services.md +0 -54
- package/docs/_posts/reference/scene-services.md +0 -392
- package/docs/_posts/reference/script-node-authoring-interface.md +0 -347
- package/docs/_posts/report-a-bug.md +0 -17
- package/docs/_posts/setup-a-localhost-server.md +0 -46
- package/docs/_posts/supported-nodes.md +0 -378
- package/docs/_posts/tutorials/adding-backgrounds.md +0 -273
- package/docs/_posts/tutorials/adding-fog.md +0 -72
- package/docs/_posts/tutorials/adding-sound.md +0 -333
- package/docs/_posts/tutorials/animating-transforms.md +0 -390
- package/docs/_posts/tutorials/basic-nodes.md +0 -312
- package/docs/_posts/tutorials/building-a-x3d-world.md +0 -174
- package/docs/_posts/tutorials/building-elevation-grids.md +0 -177
- package/docs/_posts/tutorials/building-extruded-shapes.md +0 -150
- package/docs/_posts/tutorials/building-primitive-shapes.md +0 -211
- package/docs/_posts/tutorials/building-shapes-out-of-points-lines-and-faces.md +0 -315
- package/docs/_posts/tutorials/controlling-appearance-with-materials.md +0 -193
- package/docs/_posts/tutorials/controlling-color-on-coordinate-based-geometry.md +0 -213
- package/docs/_posts/tutorials/controlling-detail.md +0 -137
- package/docs/_posts/tutorials/controlling-how-textures-are-mapped.md +0 -282
- package/docs/_posts/tutorials/controlling-navigation.md +0 -75
- package/docs/_posts/tutorials/controlling-shading-on-coordinate-based-geometry.md +0 -185
- package/docs/_posts/tutorials/controlling-the-viewpoint.md +0 -54
- package/docs/_posts/tutorials/creating-new-node-types.md +0 -340
- package/docs/_posts/tutorials/grouping-nodes.md +0 -242
- package/docs/_posts/tutorials/hello-world.md +0 -198
- package/docs/_posts/tutorials/improving-performance.md +0 -229
- package/docs/_posts/tutorials/increasing-rendering-speed.md +0 -115
- package/docs/_posts/tutorials/introducing-animation.md +0 -216
- package/docs/_posts/tutorials/introducing-script-use.md +0 -132
- package/docs/_posts/tutorials/introducing-x3d.md +0 -100
- package/docs/_posts/tutorials/lighting-your-world.md +0 -144
- package/docs/_posts/tutorials/mapping-textures.md +0 -217
- package/docs/_posts/tutorials/naming-nodes.md +0 -168
- package/docs/_posts/tutorials/overview.md +0 -83
- package/docs/_posts/tutorials/providing-information-about-your-world.md +0 -35
- package/docs/_posts/tutorials/sensing-the-viewer.md +0 -210
- package/docs/_posts/tutorials/sensing-viewer-actions.md +0 -219
- package/docs/_posts/tutorials/transforming-shapes.md +0 -275
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +0 -637
- package/docs/_posts/what's-new.md +0 -1115
- package/docs/_tabs/components.md +0 -383
- package/docs/_tabs/laboratory.md +0 -52
- package/docs/_tabs/playground.html +0 -407
- package/docs/_tabs/reference.md +0 -8
- package/docs/_tabs/tags.md +0 -5
- package/docs/_tabs/tutorials.md +0 -7
- package/docs/assets/X3D/teaser/Michroma-Regular.ttf +0 -0
- package/docs/assets/X3D/teaser/peakpx.jpg +0 -0
- package/docs/assets/X3D/teaser/teaser.x3d +0 -55
- package/docs/assets/css/style.scss +0 -320
- package/docs/assets/img/favicons/android-chrome-192x192.png +0 -0
- package/docs/assets/img/favicons/android-chrome-512x512.png +0 -0
- package/docs/assets/img/favicons/apple-touch-icon.png +0 -0
- package/docs/assets/img/favicons/favicon-16x16.png +0 -0
- package/docs/assets/img/favicons/favicon-32x32.png +0 -0
- package/docs/assets/img/favicons/favicon.ico +0 -0
- package/docs/assets/img/favicons/mstile-150x150.png +0 -0
- package/docs/assets/img/favicons/safari-pinned-tab.svg +0 -71
- package/docs/assets/img/laboratory/blend-mode.png +0 -0
- package/docs/assets/img/laboratory/dicom-nrrd.png +0 -0
- package/docs/assets/img/laboratory/earthquake.png +0 -0
- package/docs/assets/img/laboratory/gltf.png +0 -0
- package/docs/assets/img/laboratory/l-system.png +0 -0
- package/docs/assets/img/logo.png +0 -0
- package/docs/assets/js/example.js +0 -128
- package/docs/google3696ee938394d7b6.html +0 -1
- package/docs/laboratory/3d-l-system-generator.html +0 -169
- package/docs/laboratory/gltf-sample-viewer.html +0 -811
- package/docs/laboratory/online-dicom-and-nrrd-file-viewer.html +0 -72
- package/docs/laboratory/real-time-earth-quake-information.html +0 -50
- package/docs/laboratory/x3d-visual-blend-mode-editor.html +0 -228
- package/meta/logo/icon.svg +0 -432
- package/meta/logo/logo.png +0 -0
- package/meta/logo/logo.s.svg +0 -470
- package/meta/logo/logo.svg +0 -396
- package/src/LICENSE.txt +0 -46
- package/src/assets/components/Annotation.js +0 -74
- package/src/assets/components/CADGeometry.js +0 -74
- package/src/assets/components/CubeMapTexturing.js +0 -68
- package/src/assets/components/DIS.js +0 -72
- package/src/assets/components/EventUtilities.js +0 -78
- package/src/assets/components/Geometry2D.js +0 -78
- package/src/assets/components/Geospatial.js +0 -84
- package/src/assets/components/HAnim.js +0 -72
- package/src/assets/components/KeyDeviceSensor.js +0 -68
- package/src/assets/components/Layout.js +0 -74
- package/src/assets/components/NURBS.js +0 -94
- package/src/assets/components/ParticleSystems.js +0 -86
- package/src/assets/components/Picking.js +0 -74
- package/src/assets/components/RigidBodyPhysics.js +0 -94
- package/src/assets/components/Scripting.js +0 -64
- package/src/assets/components/Text.js +0 -68
- package/src/assets/components/TextureProjector.js +0 -66
- package/src/assets/components/Texturing3D.js +0 -78
- package/src/assets/components/VolumeRendering.js +0 -94
- package/src/assets/components/X_ITE.js +0 -62
- package/src/assets/fonts/DroidSerif-Bold.ttf +0 -0
- package/src/assets/fonts/DroidSerif-BoldItalic.ttf +0 -0
- package/src/assets/fonts/DroidSerif-Italic.ttf +0 -0
- package/src/assets/fonts/DroidSerif-Regular.ttf +0 -0
- package/src/assets/fonts/Ubuntu-B.ttf +0 -0
- package/src/assets/fonts/Ubuntu-BI.ttf +0 -0
- package/src/assets/fonts/Ubuntu-R.ttf +0 -0
- package/src/assets/fonts/Ubuntu-RI.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-B.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-BI.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-R.ttf +0 -0
- package/src/assets/fonts/UbuntuMono-RI.ttf +0 -0
- package/src/assets/hatching/1.png +0 -0
- package/src/assets/hatching/10.png +0 -0
- package/src/assets/hatching/11.png +0 -0
- package/src/assets/hatching/12.png +0 -0
- package/src/assets/hatching/13.png +0 -0
- package/src/assets/hatching/14.png +0 -0
- package/src/assets/hatching/15.png +0 -0
- package/src/assets/hatching/16.png +0 -0
- package/src/assets/hatching/17.png +0 -0
- package/src/assets/hatching/18.png +0 -0
- package/src/assets/hatching/19.png +0 -0
- package/src/assets/hatching/2.png +0 -0
- package/src/assets/hatching/3.png +0 -0
- package/src/assets/hatching/4.png +0 -0
- package/src/assets/hatching/5.png +0 -0
- package/src/assets/hatching/6.png +0 -0
- package/src/assets/hatching/7.png +0 -0
- package/src/assets/hatching/8.png +0 -0
- package/src/assets/hatching/9.png +0 -0
- package/src/assets/images/ExamineViewer.png +0 -0
- package/src/assets/images/FlyViewer.png +0 -0
- package/src/assets/images/NoneViewer.png +0 -0
- package/src/assets/images/PlaneViewer.png +0 -0
- package/src/assets/images/PrimitiveQuality.png +0 -0
- package/src/assets/images/Shading.png +0 -0
- package/src/assets/images/TextureQuality.png +0 -0
- package/src/assets/images/Time.png +0 -0
- package/src/assets/images/Viewpoint.png +0 -0
- package/src/assets/images/WalkViewer.png +0 -0
- package/src/assets/images/go-next.png +0 -0
- package/src/assets/images/gtk-fullscreen.png +0 -0
- package/src/assets/images/gtk-leave-fullscreen.png +0 -0
- package/src/assets/images/gtk-zoom-fit.png +0 -0
- package/src/assets/images/gtk-zoom-in.png +0 -0
- package/src/assets/images/help-about.png +0 -0
- package/src/assets/images/icon.bw.png +0 -0
- package/src/assets/images/icon.png +0 -0
- package/src/assets/images/logo.128.png +0 -0
- package/src/assets/images/logo.bw.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/lib/draco_decoder_gltf.js +0 -29
- package/src/assets/linetype/linetypes.png +0 -0
- package/src/assets/shaders/Types.glsl.js +0 -312
- package/src/assets/shaders/webgl1/Default.vs.js +0 -14
- package/src/assets/shaders/webgl1/Depth.fs.js +0 -25
- package/src/assets/shaders/webgl1/Depth.vs.js +0 -31
- package/src/assets/shaders/webgl1/Gouraud.fs.js +0 -40
- package/src/assets/shaders/webgl1/Gouraud.vs.js +0 -58
- package/src/assets/shaders/webgl1/PBR.fs.js +0 -366
- package/src/assets/shaders/webgl1/Phong.fs.js +0 -211
- package/src/assets/shaders/webgl1/Pointing.fs.js +0 -40
- package/src/assets/shaders/webgl1/Pointing.vs.js +0 -46
- package/src/assets/shaders/webgl1/Unlit.fs.js +0 -55
- package/src/assets/shaders/webgl1/include/ClipPlanes.glsl.js +0 -17
- package/src/assets/shaders/webgl1/include/Colors.glsl.js +0 -27
- package/src/assets/shaders/webgl1/include/Fog.glsl.js +0 -32
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +0 -137
- package/src/assets/shaders/webgl1/include/Hatch.glsl.js +0 -22
- package/src/assets/shaders/webgl1/include/Material.glsl.js +0 -59
- package/src/assets/shaders/webgl1/include/Normal.glsl.js +0 -48
- package/src/assets/shaders/webgl1/include/Perlin.glsl.js +0 -41
- package/src/assets/shaders/webgl1/include/Point.glsl.js +0 -47
- package/src/assets/shaders/webgl1/include/PointSize.glsl.js +0 -31
- package/src/assets/shaders/webgl1/include/Shadow.glsl.js +0 -314
- package/src/assets/shaders/webgl1/include/SpotFactor.glsl.js +0 -14
- package/src/assets/shaders/webgl1/include/Texture.glsl.js +0 -532
- package/src/assets/shaders/webgl1/include/Vertex.glsl.js +0 -154
- package/src/assets/shaders/webgl2/Compose.fs.js +0 -29
- package/src/assets/shaders/webgl2/Compose.vs.js +0 -14
- package/src/assets/shaders/webgl2/Default.vs.js +0 -16
- package/src/assets/shaders/webgl2/Depth.fs.js +0 -28
- package/src/assets/shaders/webgl2/Depth.vs.js +0 -37
- package/src/assets/shaders/webgl2/Gouraud.fs.js +0 -42
- package/src/assets/shaders/webgl2/Gouraud.vs.js +0 -60
- package/src/assets/shaders/webgl2/LineTransform.fs.js +0 -7
- package/src/assets/shaders/webgl2/LineTransform.vs.js +0 -90
- package/src/assets/shaders/webgl2/PBR.fs.js +0 -373
- package/src/assets/shaders/webgl2/Phong.fs.js +0 -225
- package/src/assets/shaders/webgl2/Pointing.fs.js +0 -49
- package/src/assets/shaders/webgl2/Pointing.vs.js +0 -68
- package/src/assets/shaders/webgl2/Unlit.fs.js +0 -60
- package/src/assets/shaders/webgl2/include/ClipPlanes.glsl.js +0 -17
- package/src/assets/shaders/webgl2/include/Colors.glsl.js +0 -27
- package/src/assets/shaders/webgl2/include/Fog.glsl.js +0 -32
- package/src/assets/shaders/webgl2/include/Fragment.glsl.js +0 -162
- package/src/assets/shaders/webgl2/include/Hatch.glsl.js +0 -22
- package/src/assets/shaders/webgl2/include/Line2.glsl.js +0 -22
- package/src/assets/shaders/webgl2/include/Material.glsl.js +0 -59
- package/src/assets/shaders/webgl2/include/Normal.glsl.js +0 -50
- package/src/assets/shaders/webgl2/include/Particle.glsl.js +0 -34
- package/src/assets/shaders/webgl2/include/Perlin.glsl.js +0 -41
- package/src/assets/shaders/webgl2/include/Point.glsl.js +0 -47
- package/src/assets/shaders/webgl2/include/PointSize.glsl.js +0 -31
- package/src/assets/shaders/webgl2/include/Shadow.glsl.js +0 -328
- package/src/assets/shaders/webgl2/include/Skin.glsl.js +0 -88
- package/src/assets/shaders/webgl2/include/SpotFactor.glsl.js +0 -14
- package/src/assets/shaders/webgl2/include/Stipple.glsl.js +0 -43
- package/src/assets/shaders/webgl2/include/Texture.glsl.js +0 -527
- package/src/assets/shaders/webgl2/include/Utils.glsl.js +0 -13
- package/src/assets/shaders/webgl2/include/Vertex.glsl.js +0 -180
- package/src/bookmarks.js +0 -297
- package/src/example.html +0 -21
- package/src/examples.js +0 -156
- package/src/lib/ammojs/AmmoClass.js +0 -50
- package/src/lib/ammojs/Makefile +0 -25
- package/src/lib/ammojs/ammo.idl +0 -1031
- package/src/lib/ammojs/ammo.js +0 -35
- package/src/lib/jquery.js +0 -66
- package/src/lib/libgif/libgif.js +0 -1004
- package/src/lib/libtess.js +0 -1
- package/src/lib/nurbs/extras/sample.js +0 -233
- package/src/lib/nurbs/nurbs.js +0 -325
- package/src/lib/nurbs/src/evaluate.js +0 -402
- package/src/lib/nurbs/src/numerical-derivative.js +0 -49
- package/src/lib/nurbs/src/support.js +0 -140
- package/src/lib/nurbs/src/transform.js +0 -70
- package/src/lib/nurbs/src/utils/accessor-preamble.js +0 -27
- package/src/lib/nurbs/src/utils/bisection-search.js +0 -22
- package/src/lib/nurbs/src/utils/cache-key.js +0 -50
- package/src/lib/nurbs/src/utils/create-accessors.js +0 -103
- package/src/lib/nurbs/src/utils/infer-type.js +0 -44
- package/src/lib/nurbs/src/utils/is-array-like.js +0 -5
- package/src/lib/nurbs/src/utils/is-ndarray-like.js +0 -13
- package/src/lib/nurbs/src/utils/is-ndarray.js +0 -16
- package/src/lib/nurbs/src/utils/ndloop.js +0 -18
- package/src/lib/nurbs/src/utils/size-getter.js +0 -16
- package/src/lib/nurbs/src/utils/variable.js +0 -26
- package/src/locale/de.po.js +0 -182
- package/src/locale/fr.po.js +0 -179
- package/src/locale/gettext.js +0 -120
- package/src/shim.js +0 -81
- package/src/standard/Geospatial/Geodetic.js +0 -257
- package/src/standard/Geospatial/ReferenceEllipsoids.js +0 -92
- package/src/standard/Geospatial/UniversalTransverseMercator.js +0 -205
- package/src/standard/Math/Algorithm.js +0 -237
- package/src/standard/Math/Algorithms/Bezier.js +0 -232
- package/src/standard/Math/Algorithms/MergeSort.js +0 -104
- package/src/standard/Math/Algorithms/PartialSort.js +0 -92
- package/src/standard/Math/Algorithms/QuickSort.js +0 -106
- package/src/standard/Math/Algorithms/SAT.js +0 -109
- package/src/standard/Math/Algorithms/eigen_decomposition.js +0 -190
- package/src/standard/Math/Geometry/Box2.js +0 -257
- package/src/standard/Math/Geometry/Box3.js +0 -665
- package/src/standard/Math/Geometry/Camera.js +0 -127
- package/src/standard/Math/Geometry/Cylinder3.js +0 -159
- package/src/standard/Math/Geometry/Line2.js +0 -155
- package/src/standard/Math/Geometry/Line3.js +0 -235
- package/src/standard/Math/Geometry/Plane3.js +0 -163
- package/src/standard/Math/Geometry/Sphere3.js +0 -191
- package/src/standard/Math/Geometry/Spheroid3.js +0 -86
- package/src/standard/Math/Geometry/Triangle2.js +0 -78
- package/src/standard/Math/Geometry/Triangle3.js +0 -140
- package/src/standard/Math/Geometry/ViewVolume.js +0 -422
- package/src/standard/Math/Numbers/Color3.js +0 -258
- package/src/standard/Math/Numbers/Color4.js +0 -188
- package/src/standard/Math/Numbers/Complex.js +0 -246
- package/src/standard/Math/Numbers/Matrix2.js +0 -274
- package/src/standard/Math/Numbers/Matrix3.js +0 -673
- package/src/standard/Math/Numbers/Matrix4.js +0 -794
- package/src/standard/Math/Numbers/Quaternion.js +0 -665
- package/src/standard/Math/Numbers/Rotation4.js +0 -478
- package/src/standard/Math/Numbers/Vector2.js +0 -238
- package/src/standard/Math/Numbers/Vector3.js +0 -292
- package/src/standard/Math/Numbers/Vector4.js +0 -307
- package/src/standard/Math/Utility/BVH.js +0 -378
- package/src/standard/Math/Utility/MatrixStack.js +0 -114
- package/src/standard/Time/StopWatch.js +0 -84
- package/src/standard/Utility/BitSet.js +0 -117
- package/src/standard/Utility/DataStorage.js +0 -132
- package/src/standard/Utility/MapUtilities.js +0 -83
- package/src/standard/Utility/ObjectCache.js +0 -72
- package/src/standard/Utility/Shuffle.js +0 -66
- package/src/tests.js +0 -399
- package/src/x_ite/Base/Events.js +0 -73
- package/src/x_ite/Base/FieldArray.js +0 -70
- package/src/x_ite/Base/FieldDefinitionArray.js +0 -70
- package/src/x_ite/Base/X3DArrayField.js +0 -138
- package/src/x_ite/Base/X3DBaseNode.js +0 -639
- package/src/x_ite/Base/X3DCast.js +0 -75
- package/src/x_ite/Base/X3DChildObject.js +0 -265
- package/src/x_ite/Base/X3DConstants.js +0 -146
- package/src/x_ite/Base/X3DField.js +0 -429
- package/src/x_ite/Base/X3DFieldDefinition.js +0 -75
- package/src/x_ite/Base/X3DInfoArray.js +0 -381
- package/src/x_ite/Base/X3DObject.js +0 -254
- package/src/x_ite/Base/X3DObjectArrayField.js +0 -541
- package/src/x_ite/Base/X3DTypedArrayField.js +0 -1018
- package/src/x_ite/Browser/Core/BrowserOptions.js +0 -388
- package/src/x_ite/Browser/Core/BrowserProperties.js +0 -84
- package/src/x_ite/Browser/Core/BrowserTimings.js +0 -300
- package/src/x_ite/Browser/Core/Context.js +0 -278
- package/src/x_ite/Browser/Core/ContextMenu.js +0 -718
- package/src/x_ite/Browser/Core/Notification.js +0 -117
- package/src/x_ite/Browser/Core/PrimitiveQuality.js +0 -57
- package/src/x_ite/Browser/Core/RenderingProperties.js +0 -104
- package/src/x_ite/Browser/Core/Shading.js +0 -59
- package/src/x_ite/Browser/Core/TextureQuality.js +0 -57
- package/src/x_ite/Browser/Core/X3DCoreContext.js +0 -758
- package/src/x_ite/Browser/DOMIntegration.js +0 -383
- package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +0 -76
- package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +0 -78
- package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +0 -176
- package/src/x_ite/Browser/Geometry2D/Arc2DOptions.js +0 -70
- package/src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js +0 -70
- package/src/x_ite/Browser/Geometry2D/Circle2DOptions.js +0 -106
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +0 -159
- package/src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js +0 -112
- package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +0 -134
- package/src/x_ite/Browser/Geometry3D/BoxOptions.js +0 -123
- package/src/x_ite/Browser/Geometry3D/ConeOptions.js +0 -71
- package/src/x_ite/Browser/Geometry3D/CylinderOptions.js +0 -71
- package/src/x_ite/Browser/Geometry3D/IcoSphere.js +0 -404
- package/src/x_ite/Browser/Geometry3D/IcoSphereOptions.js +0 -115
- package/src/x_ite/Browser/Geometry3D/QuadSphereOptions.js +0 -287
- package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +0 -128
- package/src/x_ite/Browser/Geospatial/Geocentric.js +0 -75
- package/src/x_ite/Browser/Geospatial/Geospatial.js +0 -205
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +0 -84
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +0 -186
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator1.js +0 -87
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator2.js +0 -53
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator3.js +0 -53
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +0 -107
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +0 -112
- package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +0 -97
- package/src/x_ite/Browser/Layering/X3DLayeringContext.js +0 -70
- package/src/x_ite/Browser/Layout/ScreenText.js +0 -412
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +0 -131
- package/src/x_ite/Browser/Legacy.js +0 -84
- package/src/x_ite/Browser/Lighting/X3DLightingContext.js +0 -105
- package/src/x_ite/Browser/NURBS/NURBS.js +0 -471
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +0 -866
- package/src/x_ite/Browser/Navigation/FlyViewer.js +0 -99
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +0 -519
- package/src/x_ite/Browser/Navigation/NoneViewer.js +0 -77
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +0 -243
- package/src/x_ite/Browser/Navigation/WalkViewer.js +0 -130
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +0 -727
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +0 -240
- package/src/x_ite/Browser/Navigation/X3DViewer.js +0 -204
- package/src/x_ite/Browser/Networking/URLs.js +0 -103
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +0 -227
- package/src/x_ite/Browser/ParticleSystems/BVH.glsl.js +0 -185
- package/src/x_ite/Browser/ParticleSystems/Box3.glsl.js +0 -49
- package/src/x_ite/Browser/ParticleSystems/GeometryTypes.js +0 -59
- package/src/x_ite/Browser/ParticleSystems/Line3.glsl.js +0 -57
- package/src/x_ite/Browser/ParticleSystems/Plane3.glsl.js +0 -162
- package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +0 -72
- package/src/x_ite/Browser/Picking/IntersectionType.js +0 -56
- package/src/x_ite/Browser/Picking/MatchCriterion.js +0 -57
- package/src/x_ite/Browser/Picking/SortOrder.js +0 -58
- package/src/x_ite/Browser/Picking/VolumePicker.js +0 -177
- package/src/x_ite/Browser/Picking/X3DPickingContext.js +0 -132
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +0 -279
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDeviceSensorContainer.js +0 -85
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +0 -395
- package/src/x_ite/Browser/Rendering/GeometryContext.js +0 -83
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +0 -270
- package/src/x_ite/Browser/RigidBodyPhysics/AppliedParametersType.js +0 -63
- package/src/x_ite/Browser/Scripting/X3DScriptingContext.js +0 -67
- package/src/x_ite/Browser/Scripting/evaluate.js +0 -68
- package/src/x_ite/Browser/Shaders/ShaderCompiler.js +0 -97
- package/src/x_ite/Browser/Shaders/ShaderSource.js +0 -204
- package/src/x_ite/Browser/Shaders/Shaders.js +0 -191
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +0 -190
- package/src/x_ite/Browser/Shape/AlphaMode.js +0 -58
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +0 -209
- package/src/x_ite/Browser/Sound/X3DSoundContext.js +0 -57
- package/src/x_ite/Browser/Text/PolygonText.js +0 -360
- package/src/x_ite/Browser/Text/TextAlignment.js +0 -58
- package/src/x_ite/Browser/Text/X3DTextContext.js +0 -134
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +0 -614
- package/src/x_ite/Browser/Texturing/FunctionType.js +0 -57
- package/src/x_ite/Browser/Texturing/GifMedia.js +0 -113
- package/src/x_ite/Browser/Texturing/ModeType.js +0 -74
- package/src/x_ite/Browser/Texturing/SourceType.js +0 -58
- package/src/x_ite/Browser/Texturing/TextureCoordinateGeneratorModeType.js +0 -66
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +0 -340
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +0 -1097
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +0 -458
- package/src/x_ite/Browser/Time/X3DTimeContext.js +0 -108
- package/src/x_ite/Browser/VERSION.js +0 -48
- package/src/x_ite/Browser/VolumeRendering/VolumeMaterial.js +0 -145
- package/src/x_ite/Browser/VolumeRendering/VolumeStyle.fs.js +0 -60
- package/src/x_ite/Browser/VolumeRendering/VolumeStyle.vs.js +0 -26
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +0 -131
- package/src/x_ite/Browser/X3DBrowser.js +0 -1060
- package/src/x_ite/Browser/X3DBrowserContext.js +0 -436
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +0 -109
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +0 -104
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +0 -119
- package/src/x_ite/Components/Annotation/IconAnnotation.js +0 -117
- package/src/x_ite/Components/Annotation/TextAnnotation.js +0 -105
- package/src/x_ite/Components/Annotation/URLAnnotation.js +0 -104
- package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +0 -80
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +0 -107
- package/src/x_ite/Components/CADGeometry/CADFace.js +0 -252
- package/src/x_ite/Components/CADGeometry/CADLayer.js +0 -102
- package/src/x_ite/Components/CADGeometry/CADPart.js +0 -112
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +0 -132
- package/src/x_ite/Components/CADGeometry/QuadSet.js +0 -127
- package/src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js +0 -74
- package/src/x_ite/Components/Core/MetadataBoolean.js +0 -119
- package/src/x_ite/Components/Core/MetadataDouble.js +0 -119
- package/src/x_ite/Components/Core/MetadataFloat.js +0 -119
- package/src/x_ite/Components/Core/MetadataInteger.js +0 -119
- package/src/x_ite/Components/Core/MetadataSet.js +0 -119
- package/src/x_ite/Components/Core/MetadataString.js +0 -119
- package/src/x_ite/Components/Core/WorldInfo.js +0 -110
- package/src/x_ite/Components/Core/X3DBindableNode.js +0 -108
- package/src/x_ite/Components/Core/X3DChildNode.js +0 -101
- package/src/x_ite/Components/Core/X3DInfoNode.js +0 -74
- package/src/x_ite/Components/Core/X3DMetadataObject.js +0 -75
- package/src/x_ite/Components/Core/X3DNode.js +0 -1393
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +0 -1012
- package/src/x_ite/Components/Core/X3DSensorNode.js +0 -74
- package/src/x_ite/Components/Core.js +0 -85
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +0 -250
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +0 -295
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +0 -278
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +0 -141
- package/src/x_ite/Components/DIS/DISEntityManager.js +0 -104
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +0 -120
- package/src/x_ite/Components/DIS/EspduTransform.js +0 -194
- package/src/x_ite/Components/DIS/ReceiverPdu.js +0 -139
- package/src/x_ite/Components/DIS/SignalPdu.js +0 -139
- package/src/x_ite/Components/DIS/TransmitterPdu.js +0 -155
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +0 -159
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +0 -132
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +0 -153
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +0 -129
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +0 -133
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +0 -613
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +0 -176
- package/src/x_ite/Components/EnvironmentalEffects.js +0 -71
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +0 -280
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +0 -319
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +0 -177
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +0 -143
- package/src/x_ite/Components/EnvironmentalSensor.js +0 -65
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +0 -118
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +0 -116
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +0 -109
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +0 -108
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +0 -116
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +0 -109
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +0 -108
- package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +0 -153
- package/src/x_ite/Components/EventUtilities/X3DTriggerNode.js +0 -74
- package/src/x_ite/Components/Followers/ColorChaser.js +0 -147
- package/src/x_ite/Components/Followers/ColorDamper.js +0 -145
- package/src/x_ite/Components/Followers/CoordinateChaser.js +0 -113
- package/src/x_ite/Components/Followers/CoordinateDamper.js +0 -115
- package/src/x_ite/Components/Followers/OrientationChaser.js +0 -134
- package/src/x_ite/Components/Followers/OrientationDamper.js +0 -130
- package/src/x_ite/Components/Followers/PositionChaser.js +0 -108
- package/src/x_ite/Components/Followers/PositionChaser2D.js +0 -108
- package/src/x_ite/Components/Followers/PositionDamper.js +0 -110
- package/src/x_ite/Components/Followers/PositionDamper2D.js +0 -110
- package/src/x_ite/Components/Followers/ScalarChaser.js +0 -136
- package/src/x_ite/Components/Followers/ScalarDamper.js +0 -126
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +0 -113
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +0 -115
- package/src/x_ite/Components/Followers/X3DChaserNode.js +0 -241
- package/src/x_ite/Components/Followers/X3DDamperNode.js +0 -176
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +0 -151
- package/src/x_ite/Components/Followers.js +0 -91
- package/src/x_ite/Components/Geometry2D/Arc2D.js +0 -162
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +0 -227
- package/src/x_ite/Components/Geometry2D/Circle2D.js +0 -130
- package/src/x_ite/Components/Geometry2D/Disk2D.js +0 -257
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +0 -111
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +0 -110
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +0 -148
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +0 -142
- package/src/x_ite/Components/Geometry3D/Box.js +0 -146
- package/src/x_ite/Components/Geometry3D/Cone.js +0 -248
- package/src/x_ite/Components/Geometry3D/Cylinder.js +0 -309
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +0 -439
- package/src/x_ite/Components/Geometry3D/Extrusion.js +0 -729
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +0 -473
- package/src/x_ite/Components/Geometry3D/Sphere.js +0 -146
- package/src/x_ite/Components/Geometry3D.js +0 -71
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +0 -238
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +0 -433
- package/src/x_ite/Components/Geospatial/GeoLOD.js +0 -466
- package/src/x_ite/Components/Geospatial/GeoLocation.js +0 -130
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +0 -117
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +0 -118
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +0 -156
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +0 -163
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +0 -135
- package/src/x_ite/Components/Geospatial/GeoTransform.js +0 -145
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +0 -290
- package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +0 -272
- package/src/x_ite/Components/Grouping/Group.js +0 -101
- package/src/x_ite/Components/Grouping/StaticGroup.js +0 -244
- package/src/x_ite/Components/Grouping/Switch.js +0 -257
- package/src/x_ite/Components/Grouping/Transform.js +0 -106
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +0 -150
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +0 -722
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +0 -135
- package/src/x_ite/Components/Grouping/X3DTransformNode.js +0 -95
- package/src/x_ite/Components/Grouping.js +0 -73
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +0 -101
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +0 -640
- package/src/x_ite/Components/HAnim/HAnimJoint.js +0 -198
- package/src/x_ite/Components/HAnim/HAnimMotion.js +0 -434
- package/src/x_ite/Components/HAnim/HAnimSegment.js +0 -110
- package/src/x_ite/Components/HAnim/HAnimSite.js +0 -108
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +0 -132
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +0 -132
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +0 -129
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +0 -149
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +0 -158
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +0 -134
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +0 -125
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +0 -125
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +0 -120
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +0 -147
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +0 -147
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +0 -147
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +0 -137
- package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +0 -137
- package/src/x_ite/Components/Interpolation.js +0 -85
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +0 -379
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +0 -164
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +0 -120
- package/src/x_ite/Components/Layering/Layer.js +0 -120
- package/src/x_ite/Components/Layering/LayerSet.js +0 -208
- package/src/x_ite/Components/Layering/Viewport.js +0 -180
- package/src/x_ite/Components/Layering/X3DLayerNode.js +0 -407
- package/src/x_ite/Components/Layering/X3DViewportNode.js +0 -74
- package/src/x_ite/Components/Layering.js +0 -67
- package/src/x_ite/Components/Layout/Layout.js +0 -642
- package/src/x_ite/Components/Layout/LayoutGroup.js +0 -188
- package/src/x_ite/Components/Layout/LayoutLayer.js +0 -124
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +0 -120
- package/src/x_ite/Components/Layout/ScreenGroup.js +0 -138
- package/src/x_ite/Components/Layout/X3DLayoutNode.js +0 -74
- package/src/x_ite/Components/Lighting/DirectionalLight.js +0 -291
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +0 -157
- package/src/x_ite/Components/Lighting/PointLight.js +0 -341
- package/src/x_ite/Components/Lighting/SpotLight.js +0 -360
- package/src/x_ite/Components/Lighting/X3DLightNode.js +0 -222
- package/src/x_ite/Components/Lighting.js +0 -67
- package/src/x_ite/Components/NURBS/Contour2D.js +0 -170
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +0 -165
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +0 -95
- package/src/x_ite/Components/NURBS/NurbsCurve.js +0 -234
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +0 -212
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +0 -229
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +0 -108
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +0 -217
- package/src/x_ite/Components/NURBS/NurbsSet.js +0 -186
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +0 -189
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +0 -181
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +0 -181
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +0 -156
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +0 -177
- package/src/x_ite/Components/NURBS/X3DNurbsControlCurveNode.js +0 -74
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +0 -393
- package/src/x_ite/Components/NURBS/X3DParametricGeometryNode.js +0 -81
- package/src/x_ite/Components/Navigation/Billboard.js +0 -188
- package/src/x_ite/Components/Navigation/Collision.js +0 -184
- package/src/x_ite/Components/Navigation/LOD.js +0 -335
- package/src/x_ite/Components/Navigation/NavigationInfo.js +0 -344
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +0 -356
- package/src/x_ite/Components/Navigation/Viewpoint.js +0 -200
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +0 -257
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +0 -594
- package/src/x_ite/Components/Navigation.js +0 -73
- package/src/x_ite/Components/Networking/Anchor.js +0 -220
- package/src/x_ite/Components/Networking/Inline.js +0 -314
- package/src/x_ite/Components/Networking/LoadSensor.js +0 -265
- package/src/x_ite/Components/Networking/X3DNetworkSensorNode.js +0 -74
- package/src/x_ite/Components/Networking/X3DUrlObject.js +0 -296
- package/src/x_ite/Components/Networking.js +0 -67
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +0 -132
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +0 -162
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +0 -137
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +0 -120
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +0 -1081
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +0 -153
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +0 -244
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +0 -252
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +0 -289
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +0 -142
- package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +0 -1004
- package/src/x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode.js +0 -78
- package/src/x_ite/Components/Picking/LinePickSensor.js +0 -339
- package/src/x_ite/Components/Picking/PickableGroup.js +0 -223
- package/src/x_ite/Components/Picking/PointPickSensor.js +0 -350
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +0 -270
- package/src/x_ite/Components/Picking/VolumePickSensor.js +0 -245
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +0 -441
- package/src/x_ite/Components/Picking/X3DPickableObject.js +0 -95
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +0 -303
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +0 -300
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +0 -220
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +0 -104
- package/src/x_ite/Components/PointingDeviceSensor/X3DDragSensorNode.js +0 -76
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +0 -132
- package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +0 -106
- package/src/x_ite/Components/PointingDeviceSensor.js +0 -71
- package/src/x_ite/Components/Rendering/ClipPlane.js +0 -180
- package/src/x_ite/Components/Rendering/Color.js +0 -163
- package/src/x_ite/Components/Rendering/ColorRGBA.js +0 -166
- package/src/x_ite/Components/Rendering/Coordinate.js +0 -97
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +0 -307
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +0 -165
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +0 -122
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +0 -173
- package/src/x_ite/Components/Rendering/LineSet.js +0 -240
- package/src/x_ite/Components/Rendering/Normal.js +0 -193
- package/src/x_ite/Components/Rendering/PointSet.js +0 -222
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +0 -147
- package/src/x_ite/Components/Rendering/TriangleSet.js +0 -117
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +0 -151
- package/src/x_ite/Components/Rendering/X3DColorNode.js +0 -88
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +0 -363
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +0 -193
- package/src/x_ite/Components/Rendering/X3DGeometricPropertyNode.js +0 -74
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +0 -1189
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +0 -489
- package/src/x_ite/Components/Rendering/X3DNormalNode.js +0 -74
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +0 -182
- package/src/x_ite/Components/Rendering.js +0 -99
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +0 -210
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +0 -261
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +0 -497
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +0 -214
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +0 -281
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +0 -180
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +0 -118
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +0 -292
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +0 -132
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +0 -518
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +0 -389
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +0 -251
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +0 -230
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +0 -114
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +0 -167
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +0 -89
- package/src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js +0 -221
- package/src/x_ite/Components/Scripting/Script.js +0 -510
- package/src/x_ite/Components/Scripting/X3DScriptNode.js +0 -89
- package/src/x_ite/Components/Shaders/ComposedShader.js +0 -228
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +0 -151
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +0 -142
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +0 -141
- package/src/x_ite/Components/Shaders/PackagedShader.js +0 -129
- package/src/x_ite/Components/Shaders/ProgramShader.js +0 -99
- package/src/x_ite/Components/Shaders/ShaderPart.js +0 -238
- package/src/x_ite/Components/Shaders/ShaderProgram.js +0 -126
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +0 -1357
- package/src/x_ite/Components/Shaders/X3DShaderNode.js +0 -105
- package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +0 -89
- package/src/x_ite/Components/Shaders.js +0 -79
- package/src/x_ite/Components/Shape/AcousticProperties.js +0 -100
- package/src/x_ite/Components/Shape/Appearance.js +0 -458
- package/src/x_ite/Components/Shape/FillProperties.js +0 -181
- package/src/x_ite/Components/Shape/LineProperties.js +0 -184
- package/src/x_ite/Components/Shape/Material.js +0 -412
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +0 -308
- package/src/x_ite/Components/Shape/PointProperties.js +0 -169
- package/src/x_ite/Components/Shape/Shape.js +0 -205
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +0 -292
- package/src/x_ite/Components/Shape/UnlitMaterial.js +0 -142
- package/src/x_ite/Components/Shape/X3DAppearanceChildNode.js +0 -74
- package/src/x_ite/Components/Shape/X3DAppearanceNode.js +0 -88
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +0 -350
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +0 -212
- package/src/x_ite/Components/Shape/X3DShapeNode.js +0 -211
- package/src/x_ite/Components/Shape.js +0 -87
- package/src/x_ite/Components/Sound/Analyser.js +0 -118
- package/src/x_ite/Components/Sound/AudioClip.js +0 -212
- package/src/x_ite/Components/Sound/AudioDestination.js +0 -107
- package/src/x_ite/Components/Sound/BiquadFilter.js +0 -117
- package/src/x_ite/Components/Sound/BufferAudioSource.js +0 -142
- package/src/x_ite/Components/Sound/ChannelMerger.js +0 -104
- package/src/x_ite/Components/Sound/ChannelSelector.js +0 -105
- package/src/x_ite/Components/Sound/ChannelSplitter.js +0 -105
- package/src/x_ite/Components/Sound/Convolver.js +0 -115
- package/src/x_ite/Components/Sound/Delay.js +0 -115
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +0 -119
- package/src/x_ite/Components/Sound/Gain.js +0 -113
- package/src/x_ite/Components/Sound/ListenerPointSource.js +0 -116
- package/src/x_ite/Components/Sound/MicrophoneSource.js +0 -110
- package/src/x_ite/Components/Sound/OscillatorSource.js +0 -112
- package/src/x_ite/Components/Sound/PeriodicWave.js +0 -99
- package/src/x_ite/Components/Sound/Sound.js +0 -302
- package/src/x_ite/Components/Sound/SpatialSound.js +0 -116
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +0 -107
- package/src/x_ite/Components/Sound/StreamAudioSource.js +0 -110
- package/src/x_ite/Components/Sound/WaveShaper.js +0 -115
- package/src/x_ite/Components/Sound/X3DSoundChannelNode.js +0 -74
- package/src/x_ite/Components/Sound/X3DSoundDestinationNode.js +0 -74
- package/src/x_ite/Components/Sound/X3DSoundNode.js +0 -74
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +0 -92
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +0 -227
- package/src/x_ite/Components/Sound.js +0 -109
- package/src/x_ite/Components/Text/FontStyle.js +0 -116
- package/src/x_ite/Components/Text/Text.js +0 -185
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +0 -261
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +0 -213
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +0 -268
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +0 -224
- package/src/x_ite/Components/Texturing/ImageTexture.js +0 -294
- package/src/x_ite/Components/Texturing/MovieTexture.js +0 -287
- package/src/x_ite/Components/Texturing/MultiTexture.js +0 -345
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +0 -200
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +0 -154
- package/src/x_ite/Components/Texturing/PixelTexture.js +0 -284
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +0 -179
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +0 -163
- package/src/x_ite/Components/Texturing/TextureProperties.js +0 -226
- package/src/x_ite/Components/Texturing/TextureTransform.js +0 -162
- package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +0 -101
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +0 -195
- package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +0 -99
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +0 -172
- package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +0 -74
- package/src/x_ite/Components/Texturing/X3DTextureNode.js +0 -88
- package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +0 -74
- package/src/x_ite/Components/Texturing.js +0 -91
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +0 -201
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +0 -183
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +0 -245
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +0 -221
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +0 -179
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +0 -179
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +0 -151
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +0 -114
- package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +0 -173
- package/src/x_ite/Components/Time/TimeSensor.js +0 -223
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +0 -369
- package/src/x_ite/Components/Time.js +0 -61
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +0 -355
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +0 -154
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +0 -311
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +0 -204
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +0 -180
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +0 -367
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +0 -179
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +0 -230
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +0 -280
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +0 -280
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +0 -179
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +0 -186
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +0 -214
- package/src/x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode.js +0 -74
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +0 -241
- package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +0 -138
- package/src/x_ite/Components/X_ITE/BlendMode.js +0 -206
- package/src/x_ite/Components.js +0 -99
- package/src/x_ite/Configuration/AbstractNodes.js +0 -50
- package/src/x_ite/Configuration/AbstractNodesArray.js +0 -78
- package/src/x_ite/Configuration/ComponentInfo.js +0 -137
- package/src/x_ite/Configuration/ComponentInfoArray.js +0 -76
- package/src/x_ite/Configuration/ConcreteNodes.js +0 -50
- package/src/x_ite/Configuration/ConcreteNodesArray.js +0 -87
- package/src/x_ite/Configuration/ProfileInfo.js +0 -92
- package/src/x_ite/Configuration/ProfileInfoArray.js +0 -77
- package/src/x_ite/Configuration/SupportedComponents.js +0 -307
- package/src/x_ite/Configuration/SupportedProfiles.js +0 -245
- package/src/x_ite/Configuration/UnitInfo.js +0 -158
- package/src/x_ite/Configuration/UnitInfoArray.js +0 -70
- package/src/x_ite/DEVELOPMENT.js +0 -50
- package/src/x_ite/Execution/BindableList.js +0 -203
- package/src/x_ite/Execution/BindableStack.js +0 -163
- package/src/x_ite/Execution/ExportedNodesArray.js +0 -70
- package/src/x_ite/Execution/ImportedNodesArray.js +0 -70
- package/src/x_ite/Execution/NamedNodesArray.js +0 -70
- package/src/x_ite/Execution/NamedNodesHandling.js +0 -84
- package/src/x_ite/Execution/X3DExecutionContext.js +0 -1022
- package/src/x_ite/Execution/X3DExportedNode.js +0 -201
- package/src/x_ite/Execution/X3DImportedNode.js +0 -565
- package/src/x_ite/Execution/X3DScene.js +0 -1112
- package/src/x_ite/Execution/X3DWorld.js +0 -160
- package/src/x_ite/Features.js +0 -59
- package/src/x_ite/Fields/ArrayFields.js +0 -492
- package/src/x_ite/Fields/SFBool.js +0 -104
- package/src/x_ite/Fields/SFColor.js +0 -231
- package/src/x_ite/Fields/SFColorRGBA.js +0 -198
- package/src/x_ite/Fields/SFDouble.js +0 -108
- package/src/x_ite/Fields/SFFloat.js +0 -108
- package/src/x_ite/Fields/SFImage.js +0 -370
- package/src/x_ite/Fields/SFInt32.js +0 -104
- package/src/x_ite/Fields/SFMatrix3.js +0 -140
- package/src/x_ite/Fields/SFMatrix4.js +0 -133
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +0 -191
- package/src/x_ite/Fields/SFNode.js +0 -435
- package/src/x_ite/Fields/SFNodeCache.js +0 -108
- package/src/x_ite/Fields/SFRotation.js +0 -275
- package/src/x_ite/Fields/SFString.js +0 -134
- package/src/x_ite/Fields/SFTime.js +0 -104
- package/src/x_ite/Fields/SFVec2.js +0 -120
- package/src/x_ite/Fields/SFVec3.js +0 -140
- package/src/x_ite/Fields/SFVec4.js +0 -148
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +0 -201
- package/src/x_ite/Fields.js +0 -87
- package/src/x_ite/InputOutput/FileLoader.js +0 -340
- package/src/x_ite/InputOutput/Generator.js +0 -592
- package/src/x_ite/Namespace.js +0 -52
- package/src/x_ite/Parser/Expressions.js +0 -85
- package/src/x_ite/Parser/GLB2Parser.js +0 -146
- package/src/x_ite/Parser/GLTF2Parser.js +0 -2800
- package/src/x_ite/Parser/GoldenGate.js +0 -163
- package/src/x_ite/Parser/HTMLSupport.js +0 -74
- package/src/x_ite/Parser/JSONParser.js +0 -414
- package/src/x_ite/Parser/OBJParser.js +0 -1091
- package/src/x_ite/Parser/PLYAParser.js +0 -615
- package/src/x_ite/Parser/PLYBParser.js +0 -222
- package/src/x_ite/Parser/STLAParser.js +0 -377
- package/src/x_ite/Parser/STLBParser.js +0 -155
- package/src/x_ite/Parser/SVGParser.js +0 -2762
- package/src/x_ite/Parser/VRMLParser.js +0 -2548
- package/src/x_ite/Parser/X3DOptimizer.js +0 -220
- package/src/x_ite/Parser/X3DParser.js +0 -152
- package/src/x_ite/Parser/XMLParser.js +0 -1189
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +0 -70
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +0 -70
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +0 -446
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +0 -571
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +0 -112
- package/src/x_ite/Rendering/DependentRenderer.js +0 -132
- package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +0 -394
- package/src/x_ite/Rendering/PointingBuffer.js +0 -189
- package/src/x_ite/Rendering/TextureBuffer.js +0 -231
- package/src/x_ite/Rendering/TraverseType.js +0 -60
- package/src/x_ite/Rendering/VertexArray.js +0 -95
- package/src/x_ite/Rendering/X3DRenderObject.js +0 -1144
- package/src/x_ite/Routing/RouteArray.js +0 -70
- package/src/x_ite/Routing/X3DRoute.js +0 -316
- package/src/x_ite/Routing/X3DRoutingContext.js +0 -116
- package/src/x_ite/X3D.js +0 -250
- package/src/x_ite/X3DCanvasElement.js +0 -126
- package/src/x_ite.css +0 -587
- package/src/x_ite.html +0 -470
- package/src/x_ite.js +0 -60
- package/webpack.config.js +0 -341
- package/x_ite.min.html +0 -451
|
@@ -1,1189 +0,0 @@
|
|
|
1
|
-
/*******************************************************************************
|
|
2
|
-
*
|
|
3
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4
|
-
*
|
|
5
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
6
|
-
*
|
|
7
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
8
|
-
*
|
|
9
|
-
* The copyright notice above does not evidence any actual of intended
|
|
10
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
11
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
12
|
-
* create3000.
|
|
13
|
-
*
|
|
14
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
15
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
16
|
-
* permission of create3000.
|
|
17
|
-
*
|
|
18
|
-
* NON-MILITARY USE ONLY
|
|
19
|
-
*
|
|
20
|
-
* All create3000 software are effectively free software with a non-military use
|
|
21
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
22
|
-
* source in any way you please with the exception anything that uses it must be
|
|
23
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
24
|
-
*
|
|
25
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
26
|
-
*
|
|
27
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
28
|
-
*
|
|
29
|
-
* This file is part of the X_ITE Project.
|
|
30
|
-
*
|
|
31
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
32
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
33
|
-
* Free Software Foundation.
|
|
34
|
-
*
|
|
35
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
36
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
37
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
38
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
39
|
-
*
|
|
40
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
41
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
42
|
-
* copy of the GPLv3 License.
|
|
43
|
-
*
|
|
44
|
-
* For Silvio, Joy and Adi.
|
|
45
|
-
*
|
|
46
|
-
******************************************************************************/
|
|
47
|
-
|
|
48
|
-
import Fields from "../../Fields.js";
|
|
49
|
-
import VertexArray from "../../Rendering/VertexArray.js";
|
|
50
|
-
import X3DNode from "../Core/X3DNode.js";
|
|
51
|
-
import X3DConstants from "../../Base/X3DConstants.js";
|
|
52
|
-
import Shading from "../../Browser/Core/Shading.js";
|
|
53
|
-
import Vector2 from "../../../standard/Math/Numbers/Vector2.js";
|
|
54
|
-
import Vector3 from "../../../standard/Math/Numbers/Vector3.js";
|
|
55
|
-
import Matrix4 from "../../../standard/Math/Numbers/Matrix4.js";
|
|
56
|
-
import Box3 from "../../../standard/Math/Geometry/Box3.js";
|
|
57
|
-
import Plane3 from "../../../standard/Math/Geometry/Plane3.js";
|
|
58
|
-
import Triangle3 from "../../../standard/Math/Geometry/Triangle3.js";
|
|
59
|
-
import Algorithm from "../../../standard/Math/Algorithm.js";
|
|
60
|
-
|
|
61
|
-
// Box normals for bbox / line intersection.
|
|
62
|
-
const boxNormals = [
|
|
63
|
-
new Vector3 (0, 0, 1), // front
|
|
64
|
-
new Vector3 (0, 0, -1), // back
|
|
65
|
-
new Vector3 (0, 1, 0), // top
|
|
66
|
-
new Vector3 (0, -1, 0), // bottom
|
|
67
|
-
new Vector3 (1, 0, 0) // right
|
|
68
|
-
// left: We do not have to test for left.
|
|
69
|
-
];
|
|
70
|
-
|
|
71
|
-
function X3DGeometryNode (executionContext)
|
|
72
|
-
{
|
|
73
|
-
X3DNode .call (this, executionContext);
|
|
74
|
-
|
|
75
|
-
this .addType (X3DConstants .X3DGeometryNode);
|
|
76
|
-
|
|
77
|
-
this .addChildObjects (X3DConstants .outputOnly, "transparent", new Fields .SFBool (),
|
|
78
|
-
X3DConstants .outputOnly, "bbox_changed", new Fields .SFTime (),
|
|
79
|
-
X3DConstants .outputOnly, "rebuild", new Fields .SFTime ());
|
|
80
|
-
|
|
81
|
-
// Members
|
|
82
|
-
|
|
83
|
-
const browser = this .getBrowser ();
|
|
84
|
-
|
|
85
|
-
this .min = new Vector3 (0, 0, 0);
|
|
86
|
-
this .max = new Vector3 (0, 0, 0);
|
|
87
|
-
this .bbox = Box3 .Extents (this .min, this .max);
|
|
88
|
-
this .solid = true;
|
|
89
|
-
this .primitiveMode = browser .getContext () .TRIANGLES;
|
|
90
|
-
this .geometryType = 3;
|
|
91
|
-
this .flatShading = undefined;
|
|
92
|
-
this .colorMaterial = false;
|
|
93
|
-
this .attribNodes = [ ];
|
|
94
|
-
this .attribArrays = [ ];
|
|
95
|
-
this .textureCoordinateMapping = new Map ();
|
|
96
|
-
this .multiTexCoords = [ ];
|
|
97
|
-
this .coordIndices = new Fields .MFFloat ();
|
|
98
|
-
this .texCoords = new Fields .MFFloat ();
|
|
99
|
-
this .fogDepths = new Fields .MFFloat ();
|
|
100
|
-
this .colors = new Fields .MFFloat ();
|
|
101
|
-
this .normals = new Fields .MFFloat ();
|
|
102
|
-
this .flatNormals = new Fields .MFFloat ();
|
|
103
|
-
this .vertices = new Fields .MFFloat ();
|
|
104
|
-
this .hasFogCoords = false;
|
|
105
|
-
this .hasNormals = false;
|
|
106
|
-
this .geometryKey = "";
|
|
107
|
-
this .vertexCount = 0;
|
|
108
|
-
this .planes = [ ];
|
|
109
|
-
|
|
110
|
-
for (let i = 0; i < 5; ++ i)
|
|
111
|
-
this .planes [i] = new Plane3 (Vector3 .Zero, Vector3 .zAxis);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, X3DNode .prototype),
|
|
115
|
-
{
|
|
116
|
-
setup ()
|
|
117
|
-
{
|
|
118
|
-
X3DNode .prototype .setup .call (this);
|
|
119
|
-
|
|
120
|
-
this .rebuild ();
|
|
121
|
-
},
|
|
122
|
-
initialize ()
|
|
123
|
-
{
|
|
124
|
-
X3DNode .prototype .initialize .call (this);
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
browser = this .getBrowser (),
|
|
128
|
-
gl = browser .getContext ();
|
|
129
|
-
|
|
130
|
-
this .getLive () .addInterest ("set_live__", this);
|
|
131
|
-
|
|
132
|
-
this .addInterest ("requestRebuild", this);
|
|
133
|
-
this ._rebuild .addInterest ("rebuild", this);
|
|
134
|
-
|
|
135
|
-
this .frontFace = gl .CCW;
|
|
136
|
-
this .backFace = new Map ([[gl .CCW, gl .CW], [gl .CW, gl .CCW]]);
|
|
137
|
-
this .coordIndexBuffer = gl .createBuffer ();
|
|
138
|
-
this .attribBuffers = [ ];
|
|
139
|
-
this .textureCoordinateNode = browser .getDefaultTextureCoordinate ();
|
|
140
|
-
this .texCoordBuffers = Array .from ({length: browser .getMaxTexCoords ()}, () => gl .createBuffer ());
|
|
141
|
-
this .fogDepthBuffer = gl .createBuffer ();
|
|
142
|
-
this .colorBuffer = gl .createBuffer ();
|
|
143
|
-
this .normalBuffer = gl .createBuffer ();
|
|
144
|
-
this .vertexBuffer = gl .createBuffer ();
|
|
145
|
-
this .vertexArrayObject = new VertexArray (gl);
|
|
146
|
-
|
|
147
|
-
this .set_live__ ();
|
|
148
|
-
},
|
|
149
|
-
setGeometryType (value)
|
|
150
|
-
{
|
|
151
|
-
this .geometryType = value;
|
|
152
|
-
},
|
|
153
|
-
getGeometryType ()
|
|
154
|
-
{
|
|
155
|
-
return this .geometryType;
|
|
156
|
-
},
|
|
157
|
-
setTransparent (value)
|
|
158
|
-
{
|
|
159
|
-
if (value !== this ._transparent .getValue ())
|
|
160
|
-
this ._transparent = value;
|
|
161
|
-
},
|
|
162
|
-
isTransparent ()
|
|
163
|
-
{
|
|
164
|
-
return this ._transparent .getValue ();
|
|
165
|
-
},
|
|
166
|
-
getBBox ()
|
|
167
|
-
{
|
|
168
|
-
// With screen matrix applied.
|
|
169
|
-
return this .bbox;
|
|
170
|
-
},
|
|
171
|
-
setBBox (bbox)
|
|
172
|
-
{
|
|
173
|
-
if (bbox .equals (this .bbox))
|
|
174
|
-
return;
|
|
175
|
-
|
|
176
|
-
bbox .getExtents (this .min, this .max);
|
|
177
|
-
|
|
178
|
-
this .bbox .assign (bbox);
|
|
179
|
-
|
|
180
|
-
for (let i = 0; i < 5; ++ i)
|
|
181
|
-
this .planes [i] .set (i % 2 ? this .min : this .max, boxNormals [i]);
|
|
182
|
-
|
|
183
|
-
this ._bbox_changed .addEvent ();
|
|
184
|
-
},
|
|
185
|
-
getMin ()
|
|
186
|
-
{
|
|
187
|
-
// With screen matrix applied.
|
|
188
|
-
return this .min;
|
|
189
|
-
},
|
|
190
|
-
getMax ()
|
|
191
|
-
{
|
|
192
|
-
// With screen matrix applied.
|
|
193
|
-
return this .max;
|
|
194
|
-
},
|
|
195
|
-
getMatrix ()
|
|
196
|
-
{
|
|
197
|
-
return Matrix4 .Identity;
|
|
198
|
-
},
|
|
199
|
-
setPrimitiveMode (value)
|
|
200
|
-
{
|
|
201
|
-
this .primitiveMode = value;
|
|
202
|
-
},
|
|
203
|
-
getPrimitiveMode ()
|
|
204
|
-
{
|
|
205
|
-
return this .primitiveMode;
|
|
206
|
-
},
|
|
207
|
-
setSolid (value)
|
|
208
|
-
{
|
|
209
|
-
this .solid = value;
|
|
210
|
-
},
|
|
211
|
-
setCCW (value)
|
|
212
|
-
{
|
|
213
|
-
const gl = this .getBrowser () .getContext ();
|
|
214
|
-
|
|
215
|
-
this .frontFace = value ? gl .CCW : gl .CW;
|
|
216
|
-
},
|
|
217
|
-
getCoordIndices ()
|
|
218
|
-
{
|
|
219
|
-
return this .coordIndices;
|
|
220
|
-
},
|
|
221
|
-
getAttrib ()
|
|
222
|
-
{
|
|
223
|
-
return this .attribNodes;
|
|
224
|
-
},
|
|
225
|
-
getAttribs ()
|
|
226
|
-
{
|
|
227
|
-
return this .attribArrays;
|
|
228
|
-
},
|
|
229
|
-
getAttribBuffers ()
|
|
230
|
-
{
|
|
231
|
-
return this .attribBuffers;
|
|
232
|
-
},
|
|
233
|
-
setFogDepths (value)
|
|
234
|
-
{
|
|
235
|
-
this .fogDepths .assign (value);
|
|
236
|
-
},
|
|
237
|
-
getFogDepths ()
|
|
238
|
-
{
|
|
239
|
-
return this .fogDepths;
|
|
240
|
-
},
|
|
241
|
-
setColors (value)
|
|
242
|
-
{
|
|
243
|
-
this .colors .assign (value);
|
|
244
|
-
},
|
|
245
|
-
getColors ()
|
|
246
|
-
{
|
|
247
|
-
return this .colors;
|
|
248
|
-
},
|
|
249
|
-
setMultiTexCoords (value)
|
|
250
|
-
{
|
|
251
|
-
const
|
|
252
|
-
multiTexCoords = this .multiTexCoords,
|
|
253
|
-
length = value .length;
|
|
254
|
-
|
|
255
|
-
for (let i = 0; i < length; ++ i)
|
|
256
|
-
multiTexCoords [i] = value [i];
|
|
257
|
-
|
|
258
|
-
multiTexCoords .length = length;
|
|
259
|
-
},
|
|
260
|
-
getMultiTexCoords ()
|
|
261
|
-
{
|
|
262
|
-
return this .multiTexCoords;
|
|
263
|
-
},
|
|
264
|
-
getTexCoords ()
|
|
265
|
-
{
|
|
266
|
-
return this .texCoords;
|
|
267
|
-
},
|
|
268
|
-
getTextureCoordinate ()
|
|
269
|
-
{
|
|
270
|
-
return this .textureCoordinateNode;
|
|
271
|
-
},
|
|
272
|
-
setTextureCoordinate (value)
|
|
273
|
-
{
|
|
274
|
-
this .textureCoordinateNode .removeInterest ("updateTextureCoordinateMapping", this);
|
|
275
|
-
|
|
276
|
-
this .textureCoordinateNode = value ?? this .getBrowser () .getDefaultTextureCoordinate ();
|
|
277
|
-
|
|
278
|
-
this .textureCoordinateNode .addInterest ("updateTextureCoordinateMapping", this);
|
|
279
|
-
|
|
280
|
-
this .updateTextureCoordinateMapping ();
|
|
281
|
-
},
|
|
282
|
-
getTextureCoordinateMapping ()
|
|
283
|
-
{
|
|
284
|
-
return this .textureCoordinateMapping;
|
|
285
|
-
},
|
|
286
|
-
updateTextureCoordinateMapping ()
|
|
287
|
-
{
|
|
288
|
-
this .textureCoordinateMapping .clear ();
|
|
289
|
-
|
|
290
|
-
this .textureCoordinateNode .getTextureCoordinateMapping (this .textureCoordinateMapping);
|
|
291
|
-
},
|
|
292
|
-
setNormals (value)
|
|
293
|
-
{
|
|
294
|
-
this .normals .assign (value);
|
|
295
|
-
},
|
|
296
|
-
getNormals ()
|
|
297
|
-
{
|
|
298
|
-
return this .normals;
|
|
299
|
-
},
|
|
300
|
-
setVertices (value)
|
|
301
|
-
{
|
|
302
|
-
this .vertices .assign (value);
|
|
303
|
-
},
|
|
304
|
-
getVertices ()
|
|
305
|
-
{
|
|
306
|
-
return this .vertices;
|
|
307
|
-
},
|
|
308
|
-
updateVertexArrays ()
|
|
309
|
-
{
|
|
310
|
-
this .vertexArrayObject .update ();
|
|
311
|
-
|
|
312
|
-
this .updateParticles = true;
|
|
313
|
-
},
|
|
314
|
-
buildTexCoords ()
|
|
315
|
-
{
|
|
316
|
-
const texCoords = this .texCoords;
|
|
317
|
-
|
|
318
|
-
if (texCoords .length === 0)
|
|
319
|
-
{
|
|
320
|
-
const
|
|
321
|
-
p = this .getTexCoordParams (),
|
|
322
|
-
min = p .min,
|
|
323
|
-
Sindex = p .Sindex,
|
|
324
|
-
Tindex = p .Tindex,
|
|
325
|
-
Ssize = p .Ssize,
|
|
326
|
-
S = min [Sindex],
|
|
327
|
-
T = min [Tindex],
|
|
328
|
-
vertices = this .vertices .getValue ();
|
|
329
|
-
|
|
330
|
-
for (let i = 0, length = vertices .length; i < length; i += 4)
|
|
331
|
-
{
|
|
332
|
-
texCoords .push ((vertices [i + Sindex] - S) / Ssize,
|
|
333
|
-
(vertices [i + Tindex] - T) / Ssize,
|
|
334
|
-
0,
|
|
335
|
-
1);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
texCoords .shrinkToFit ();
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
this .getMultiTexCoords () .push (texCoords);
|
|
342
|
-
},
|
|
343
|
-
getTexCoordParams: (() =>
|
|
344
|
-
{
|
|
345
|
-
const texCoordParams = { min: new Vector3 (0, 0, 0), Ssize: 0, Sindex: 0, Tindex: 0 };
|
|
346
|
-
|
|
347
|
-
return function ()
|
|
348
|
-
{
|
|
349
|
-
const
|
|
350
|
-
bbox = this .getBBox (),
|
|
351
|
-
size = bbox .size,
|
|
352
|
-
Xsize = size .x,
|
|
353
|
-
Ysize = size .y,
|
|
354
|
-
Zsize = size .z;
|
|
355
|
-
|
|
356
|
-
texCoordParams .min .assign (bbox .center) .subtract (size .divide (2));
|
|
357
|
-
|
|
358
|
-
if ((Xsize >= Ysize) && (Xsize >= Zsize))
|
|
359
|
-
{
|
|
360
|
-
// X size largest
|
|
361
|
-
texCoordParams .Ssize = Xsize;
|
|
362
|
-
texCoordParams .Sindex = 0;
|
|
363
|
-
|
|
364
|
-
if (Ysize >= Zsize)
|
|
365
|
-
texCoordParams .Tindex = 1;
|
|
366
|
-
else
|
|
367
|
-
texCoordParams .Tindex = 2;
|
|
368
|
-
}
|
|
369
|
-
else if ((Ysize >= Xsize) && (Ysize >= Zsize))
|
|
370
|
-
{
|
|
371
|
-
// Y size largest
|
|
372
|
-
texCoordParams .Ssize = Ysize;
|
|
373
|
-
texCoordParams .Sindex = 1;
|
|
374
|
-
|
|
375
|
-
if (Xsize >= Zsize)
|
|
376
|
-
texCoordParams .Tindex = 0;
|
|
377
|
-
else
|
|
378
|
-
texCoordParams .Tindex = 2;
|
|
379
|
-
}
|
|
380
|
-
else
|
|
381
|
-
{
|
|
382
|
-
// Z is the largest
|
|
383
|
-
texCoordParams .Ssize = Zsize;
|
|
384
|
-
texCoordParams .Sindex = 2;
|
|
385
|
-
|
|
386
|
-
if (Xsize >= Ysize)
|
|
387
|
-
texCoordParams .Tindex = 0;
|
|
388
|
-
else
|
|
389
|
-
texCoordParams .Tindex = 1;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
return texCoordParams;
|
|
393
|
-
};
|
|
394
|
-
})(),
|
|
395
|
-
refineNormals (normalIndex, normals, creaseAngle)
|
|
396
|
-
{
|
|
397
|
-
if (creaseAngle === 0)
|
|
398
|
-
return normals;
|
|
399
|
-
|
|
400
|
-
const
|
|
401
|
-
cosCreaseAngle = Math .cos (Algorithm .clamp (creaseAngle, 0, Math .PI)),
|
|
402
|
-
refinedNormals = [ ];
|
|
403
|
-
|
|
404
|
-
for (const vertex of normalIndex .values ())
|
|
405
|
-
{
|
|
406
|
-
for (const p of vertex)
|
|
407
|
-
{
|
|
408
|
-
const
|
|
409
|
-
P = normals [p],
|
|
410
|
-
N = new Vector3 (0, 0, 0);
|
|
411
|
-
|
|
412
|
-
for (const q of vertex)
|
|
413
|
-
{
|
|
414
|
-
const Q = normals [q];
|
|
415
|
-
|
|
416
|
-
if (Q .dot (P) >= cosCreaseAngle)
|
|
417
|
-
N .add (Q);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
refinedNormals [p] = N .normalize ();
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
return refinedNormals;
|
|
425
|
-
},
|
|
426
|
-
transformLine (hitRay)
|
|
427
|
-
{
|
|
428
|
-
// Apply sceen nodes transformation in place here.
|
|
429
|
-
},
|
|
430
|
-
transformMatrix (hitRay)
|
|
431
|
-
{
|
|
432
|
-
// Apply sceen nodes transformation in place here.
|
|
433
|
-
},
|
|
434
|
-
isClipped (point, clipPlanes)
|
|
435
|
-
{
|
|
436
|
-
return clipPlanes .some (clipPlane => clipPlane .isClipped (point));
|
|
437
|
-
},
|
|
438
|
-
intersectsLine: (() =>
|
|
439
|
-
{
|
|
440
|
-
const
|
|
441
|
-
modelViewMatrix = new Matrix4 (),
|
|
442
|
-
uvt = { u: 0, v: 0, t: 0 },
|
|
443
|
-
v0 = new Vector3 (0, 0, 0),
|
|
444
|
-
v1 = new Vector3 (0, 0, 0),
|
|
445
|
-
v2 = new Vector3 (0, 0, 0),
|
|
446
|
-
clipPoint = new Vector3 (0, 0, 0);
|
|
447
|
-
|
|
448
|
-
return function (hitRay, matrix, clipPlanes, intersections)
|
|
449
|
-
{
|
|
450
|
-
if (this .intersectsBBox (hitRay))
|
|
451
|
-
{
|
|
452
|
-
this .transformLine (hitRay); // Apply screen transformations from screen nodes.
|
|
453
|
-
this .transformMatrix (modelViewMatrix .assign (matrix)); // Apply screen transformations from screen nodes.
|
|
454
|
-
|
|
455
|
-
const
|
|
456
|
-
texCoords = this .multiTexCoords [0] .getValue (),
|
|
457
|
-
normals = this .normals .getValue (),
|
|
458
|
-
vertices = this .vertices .getValue (),
|
|
459
|
-
vertexCount = this .vertexCount;
|
|
460
|
-
|
|
461
|
-
for (let i = 0; i < vertexCount; i += 3)
|
|
462
|
-
{
|
|
463
|
-
const i4 = i * 4;
|
|
464
|
-
|
|
465
|
-
v0 .x = vertices [i4]; v0 .y = vertices [i4 + 1]; v0 .z = vertices [i4 + 2];
|
|
466
|
-
v1 .x = vertices [i4 + 4]; v1 .y = vertices [i4 + 5]; v1 .z = vertices [i4 + 6];
|
|
467
|
-
v2 .x = vertices [i4 + 8]; v2 .y = vertices [i4 + 9]; v2 .z = vertices [i4 + 10];
|
|
468
|
-
|
|
469
|
-
if (hitRay .intersectsTriangle (v0, v1, v2, uvt))
|
|
470
|
-
{
|
|
471
|
-
// Get barycentric coordinates.
|
|
472
|
-
|
|
473
|
-
const
|
|
474
|
-
u = uvt .u,
|
|
475
|
-
v = uvt .v,
|
|
476
|
-
t = uvt .t;
|
|
477
|
-
|
|
478
|
-
// Determine vectors for X3DPointingDeviceSensors.
|
|
479
|
-
|
|
480
|
-
const point = new Vector3 (t * vertices [i4] + u * vertices [i4 + 4] + v * vertices [i4 + 8],
|
|
481
|
-
t * vertices [i4 + 1] + u * vertices [i4 + 5] + v * vertices [i4 + 9],
|
|
482
|
-
t * vertices [i4 + 2] + u * vertices [i4 + 6] + v * vertices [i4 + 10]);
|
|
483
|
-
|
|
484
|
-
if (clipPlanes .length)
|
|
485
|
-
{
|
|
486
|
-
if (this .isClipped (modelViewMatrix .multVecMatrix (clipPoint .assign (point)), clipPlanes))
|
|
487
|
-
continue;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
const texCoord = new Vector2 (t * texCoords [i4] + u * texCoords [i4 + 4] + v * texCoords [i4 + 8],
|
|
491
|
-
t * texCoords [i4 + 1] + u * texCoords [i4 + 5] + v * texCoords [i4 + 9]);
|
|
492
|
-
|
|
493
|
-
const i3 = i * 3;
|
|
494
|
-
|
|
495
|
-
const normal = new Vector3 (t * normals [i3] + u * normals [i3 + 3] + v * normals [i3 + 6],
|
|
496
|
-
t * normals [i3 + 1] + u * normals [i3 + 4] + v * normals [i3 + 7],
|
|
497
|
-
t * normals [i3 + 2] + u * normals [i3 + 5] + v * normals [i3 + 8]);
|
|
498
|
-
|
|
499
|
-
intersections .push ({ texCoord: texCoord, normal: normal, point: this .getMatrix () .multVecMatrix (point) });
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
return intersections .length;
|
|
505
|
-
};
|
|
506
|
-
})(),
|
|
507
|
-
getPlanesWithOffset: (() =>
|
|
508
|
-
{
|
|
509
|
-
const
|
|
510
|
-
min = new Vector3 (0, 0, 0),
|
|
511
|
-
max = new Vector3 (0, 0, 0),
|
|
512
|
-
planes = [ ];
|
|
513
|
-
|
|
514
|
-
for (let i = 0; i < 5; ++ i)
|
|
515
|
-
planes [i] = new Plane3 (Vector3 .Zero, Vector3 .zAxis);
|
|
516
|
-
|
|
517
|
-
return function (minX, minY, minZ, maxX, maxY, maxZ)
|
|
518
|
-
{
|
|
519
|
-
min .set (minX, minY, minZ);
|
|
520
|
-
max .set (maxX, maxY, maxZ);
|
|
521
|
-
|
|
522
|
-
for (let i = 0; i < 5; ++ i)
|
|
523
|
-
planes [i] .set (i % 2 ? min : max, boxNormals [i]);
|
|
524
|
-
|
|
525
|
-
return planes;
|
|
526
|
-
};
|
|
527
|
-
})(),
|
|
528
|
-
intersectsBBox: (() =>
|
|
529
|
-
{
|
|
530
|
-
const intersection = new Vector3 (0, 0, 0);
|
|
531
|
-
|
|
532
|
-
return function (hitRay, offsets)
|
|
533
|
-
{
|
|
534
|
-
if (offsets)
|
|
535
|
-
{
|
|
536
|
-
var
|
|
537
|
-
min = this .min,
|
|
538
|
-
max = this .max,
|
|
539
|
-
minX = min .x - offsets .x,
|
|
540
|
-
maxX = max .x + offsets .x,
|
|
541
|
-
minY = min .y - offsets .y,
|
|
542
|
-
maxY = max .y + offsets .y,
|
|
543
|
-
minZ = min .z - offsets .z,
|
|
544
|
-
maxZ = max .z + offsets .z,
|
|
545
|
-
planes = this .getPlanesWithOffset (minX, minY, minZ, maxX, maxY, maxZ);
|
|
546
|
-
}
|
|
547
|
-
else
|
|
548
|
-
{
|
|
549
|
-
var
|
|
550
|
-
min = this .min,
|
|
551
|
-
max = this .max,
|
|
552
|
-
minX = min .x,
|
|
553
|
-
maxX = max .x,
|
|
554
|
-
minY = min .y,
|
|
555
|
-
maxY = max .y,
|
|
556
|
-
minZ = min .z,
|
|
557
|
-
maxZ = max .z,
|
|
558
|
-
planes = this .planes;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
// front
|
|
562
|
-
if (planes [0] .intersectsLine (hitRay, intersection))
|
|
563
|
-
{
|
|
564
|
-
if (intersection .x >= minX && intersection .x <= maxX &&
|
|
565
|
-
intersection .y >= minY && intersection .y <= maxY)
|
|
566
|
-
return true;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
// back
|
|
570
|
-
if (planes [1] .intersectsLine (hitRay, intersection))
|
|
571
|
-
{
|
|
572
|
-
if (intersection .x >= minX && intersection .x <= maxX &&
|
|
573
|
-
intersection .y >= minY && intersection .y <= maxY)
|
|
574
|
-
return true;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
// top
|
|
578
|
-
if (planes [2] .intersectsLine (hitRay, intersection))
|
|
579
|
-
{
|
|
580
|
-
if (intersection .x >= minX && intersection .x <= maxX &&
|
|
581
|
-
intersection .z >= minZ && intersection .z <= maxZ)
|
|
582
|
-
return true;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
// bottom
|
|
586
|
-
if (planes [3] .intersectsLine (hitRay, intersection))
|
|
587
|
-
{
|
|
588
|
-
if (intersection .x >= minX && intersection .x <= maxX &&
|
|
589
|
-
intersection .z >= minZ && intersection .z <= maxZ)
|
|
590
|
-
return true;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
// right
|
|
594
|
-
if (planes [4] .intersectsLine (hitRay, intersection))
|
|
595
|
-
{
|
|
596
|
-
if (intersection .y >= minY && intersection .y <= maxY &&
|
|
597
|
-
intersection .z >= minZ && intersection .z <= maxZ)
|
|
598
|
-
return true;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
return false;
|
|
602
|
-
};
|
|
603
|
-
})(),
|
|
604
|
-
intersectsBox: (() =>
|
|
605
|
-
{
|
|
606
|
-
const
|
|
607
|
-
v0 = new Vector3 (0, 0, 0),
|
|
608
|
-
v1 = new Vector3 (0, 0, 0),
|
|
609
|
-
v2 = new Vector3 (0, 0, 0),
|
|
610
|
-
invMatrix = new Matrix4 (),
|
|
611
|
-
clipPoint = new Vector3 (0, 0, 0);
|
|
612
|
-
|
|
613
|
-
return function (box, clipPlanes, modelViewMatrix)
|
|
614
|
-
{
|
|
615
|
-
if (box .intersectsBox (this .bbox))
|
|
616
|
-
{
|
|
617
|
-
box .multRight (invMatrix .assign (this .getMatrix ()) .inverse ());
|
|
618
|
-
|
|
619
|
-
this .transformMatrix (modelViewMatrix); // Apply screen transformations from screen nodes.
|
|
620
|
-
|
|
621
|
-
const vertices = this .vertices .getValue ();
|
|
622
|
-
|
|
623
|
-
for (let i = 0, length = this .vertexCount; i < length; i += 3)
|
|
624
|
-
{
|
|
625
|
-
const i4 = i * 4;
|
|
626
|
-
|
|
627
|
-
v0 .x = vertices [i4]; v0 .y = vertices [i4 + 1]; v0 .z = vertices [i4 + 2];
|
|
628
|
-
v1 .x = vertices [i4 + 4]; v1 .y = vertices [i4 + 5]; v1 .z = vertices [i4 + 6];
|
|
629
|
-
v2 .x = vertices [i4 + 8]; v2 .y = vertices [i4 + 9]; v2 .z = vertices [i4 + 10];
|
|
630
|
-
|
|
631
|
-
if (box .intersectsTriangle (v0, v1, v2))
|
|
632
|
-
{
|
|
633
|
-
if (clipPlanes .length)
|
|
634
|
-
{
|
|
635
|
-
if (this .isClipped (modelViewMatrix .multVecMatrix (clipPoint .assign (v0)), clipPlanes))
|
|
636
|
-
continue;
|
|
637
|
-
|
|
638
|
-
if (this .isClipped (modelViewMatrix .multVecMatrix (clipPoint .assign (v1)), clipPlanes))
|
|
639
|
-
continue;
|
|
640
|
-
|
|
641
|
-
if (this .isClipped (modelViewMatrix .multVecMatrix (clipPoint .assign (v2)), clipPlanes))
|
|
642
|
-
continue;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
return true;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
return false;
|
|
651
|
-
};
|
|
652
|
-
})(),
|
|
653
|
-
set_live__ ()
|
|
654
|
-
{
|
|
655
|
-
if (this .getLive () .getValue ())
|
|
656
|
-
this .getBrowser () .getBrowserOptions () ._Shading .addInterest ("set_shading__", this);
|
|
657
|
-
else
|
|
658
|
-
this .getBrowser () .getBrowserOptions () ._Shading .removeInterest ("set_shading__", this);
|
|
659
|
-
},
|
|
660
|
-
set_shading__: (() =>
|
|
661
|
-
{
|
|
662
|
-
const
|
|
663
|
-
v0 = new Vector3 (0, 0, 0),
|
|
664
|
-
v1 = new Vector3 (0, 0, 0),
|
|
665
|
-
v2 = new Vector3 (0, 0, 0),
|
|
666
|
-
normal = new Vector3 (0, 0, 0);
|
|
667
|
-
|
|
668
|
-
return function (shading)
|
|
669
|
-
{
|
|
670
|
-
const
|
|
671
|
-
browser = this .getBrowser (),
|
|
672
|
-
gl = browser .getContext ();
|
|
673
|
-
|
|
674
|
-
if (this .geometryType < 2)
|
|
675
|
-
{
|
|
676
|
-
gl .bindBuffer (gl .ARRAY_BUFFER, this .normalBuffer);
|
|
677
|
-
gl .bufferData (gl .ARRAY_BUFFER, this .normals .getValue (), gl .DYNAMIC_DRAW);
|
|
678
|
-
}
|
|
679
|
-
else
|
|
680
|
-
{
|
|
681
|
-
const flatShading = browser .getBrowserOptions () .getShading () === Shading .FLAT;
|
|
682
|
-
|
|
683
|
-
if (flatShading === this .flatShading)
|
|
684
|
-
return;
|
|
685
|
-
|
|
686
|
-
this .flatShading = flatShading;
|
|
687
|
-
|
|
688
|
-
// Generate flat normals if needed.
|
|
689
|
-
|
|
690
|
-
if (flatShading)
|
|
691
|
-
{
|
|
692
|
-
if (!this .flatNormals .length)
|
|
693
|
-
{
|
|
694
|
-
const
|
|
695
|
-
cw = this .frontFace === gl .CW,
|
|
696
|
-
flatNormals = this .flatNormals,
|
|
697
|
-
vertices = this .vertices .getValue ();
|
|
698
|
-
|
|
699
|
-
for (let i = 0, length = vertices .length; i < length; i += 12)
|
|
700
|
-
{
|
|
701
|
-
Triangle3 .normal (v0 .set (vertices [i], vertices [i + 1], vertices [i + 2]),
|
|
702
|
-
v1 .set (vertices [i + 4], vertices [i + 5], vertices [i + 6]),
|
|
703
|
-
v2 .set (vertices [i + 8], vertices [i + 9], vertices [i + 10]),
|
|
704
|
-
normal);
|
|
705
|
-
|
|
706
|
-
if (cw)
|
|
707
|
-
normal .negate ();
|
|
708
|
-
|
|
709
|
-
flatNormals .push (normal .x, normal .y, normal .z,
|
|
710
|
-
normal .x, normal .y, normal .z,
|
|
711
|
-
normal .x, normal .y, normal .z);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
flatNormals .shrinkToFit ();
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
// Transfer normals.
|
|
719
|
-
|
|
720
|
-
gl .bindBuffer (gl .ARRAY_BUFFER, this .normalBuffer);
|
|
721
|
-
gl .bufferData (gl .ARRAY_BUFFER, flatShading ? this .flatNormals .getValue () : this .normals .getValue (), gl .DYNAMIC_DRAW);
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
|
-
})(),
|
|
725
|
-
requestRebuild ()
|
|
726
|
-
{
|
|
727
|
-
this ._rebuild .addEvent ();
|
|
728
|
-
},
|
|
729
|
-
rebuild: (() =>
|
|
730
|
-
{
|
|
731
|
-
const point = new Vector3 (0, 0, 0);
|
|
732
|
-
|
|
733
|
-
return function ()
|
|
734
|
-
{
|
|
735
|
-
this .clear ();
|
|
736
|
-
this .build ();
|
|
737
|
-
|
|
738
|
-
// Shrink arrays before transferring them to graphics card.
|
|
739
|
-
|
|
740
|
-
for (const attribArray of this .attribArrays)
|
|
741
|
-
attribArray .shrinkToFit ();
|
|
742
|
-
|
|
743
|
-
for (const multiTexCoord of this .multiTexCoords)
|
|
744
|
-
multiTexCoord .shrinkToFit ();
|
|
745
|
-
|
|
746
|
-
this .coordIndices .shrinkToFit ();
|
|
747
|
-
this .fogDepths .shrinkToFit ();
|
|
748
|
-
this .colors .shrinkToFit ();
|
|
749
|
-
this .normals .shrinkToFit ();
|
|
750
|
-
this .vertices .shrinkToFit ();
|
|
751
|
-
|
|
752
|
-
// Determine bbox.
|
|
753
|
-
|
|
754
|
-
const
|
|
755
|
-
vertices = this .vertices .getValue (),
|
|
756
|
-
min = this .min,
|
|
757
|
-
max = this .max;
|
|
758
|
-
|
|
759
|
-
if (vertices .length)
|
|
760
|
-
{
|
|
761
|
-
if (min .x === Number .POSITIVE_INFINITY)
|
|
762
|
-
{
|
|
763
|
-
for (let i = 0, length = vertices .length; i < length; i += 4)
|
|
764
|
-
{
|
|
765
|
-
point .set (vertices [i], vertices [i + 1], vertices [i + 2]);
|
|
766
|
-
|
|
767
|
-
min .min (point);
|
|
768
|
-
max .max (point);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
this .bbox .setExtents (min, max);
|
|
773
|
-
}
|
|
774
|
-
else
|
|
775
|
-
{
|
|
776
|
-
this .bbox .setExtents (min .set (0, 0, 0), max .set (0, 0, 0));
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
this ._bbox_changed .addEvent ();
|
|
780
|
-
|
|
781
|
-
for (let i = 0; i < 5; ++ i)
|
|
782
|
-
this .planes [i] .set (i % 2 ? min : max, boxNormals [i]);
|
|
783
|
-
|
|
784
|
-
// Generate texCoord if needed.
|
|
785
|
-
|
|
786
|
-
if (this .multiTexCoords .length === 0)
|
|
787
|
-
this .buildTexCoords ();
|
|
788
|
-
|
|
789
|
-
// Transfer arrays and update.
|
|
790
|
-
|
|
791
|
-
this .transfer ();
|
|
792
|
-
this .updateGeometryKey ();
|
|
793
|
-
this .updateRenderFunctions ();
|
|
794
|
-
};
|
|
795
|
-
})(),
|
|
796
|
-
clear ()
|
|
797
|
-
{
|
|
798
|
-
// BBox
|
|
799
|
-
|
|
800
|
-
this .min .set (Number .POSITIVE_INFINITY, Number .POSITIVE_INFINITY, Number .POSITIVE_INFINITY);
|
|
801
|
-
this .max .set (Number .NEGATIVE_INFINITY, Number .NEGATIVE_INFINITY, Number .NEGATIVE_INFINITY);
|
|
802
|
-
|
|
803
|
-
// Create attribArray arrays.
|
|
804
|
-
{
|
|
805
|
-
const attribArrays = this .attribArrays;
|
|
806
|
-
|
|
807
|
-
for (const attribArray of attribArrays)
|
|
808
|
-
attribArray .length = 0;
|
|
809
|
-
|
|
810
|
-
const length = this .attribNodes .length;
|
|
811
|
-
|
|
812
|
-
for (let a = attribArrays .length; a < length; ++ a)
|
|
813
|
-
attribArrays [a] = new Fields .MFFloat ();
|
|
814
|
-
|
|
815
|
-
attribArrays .length = length;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
// Buffer
|
|
819
|
-
|
|
820
|
-
this .flatShading = undefined;
|
|
821
|
-
|
|
822
|
-
this .coordIndices .length = 0;
|
|
823
|
-
this .fogDepths .length = 0;
|
|
824
|
-
this .colors .length = 0;
|
|
825
|
-
this .multiTexCoords .length = 0;
|
|
826
|
-
this .texCoords .length = 0;
|
|
827
|
-
this .normals .length = 0;
|
|
828
|
-
this .flatNormals .length = 0;
|
|
829
|
-
this .vertices .length = 0;
|
|
830
|
-
},
|
|
831
|
-
transfer ()
|
|
832
|
-
{
|
|
833
|
-
const gl = this .getBrowser () .getContext ();
|
|
834
|
-
|
|
835
|
-
// Transfer coord indices.
|
|
836
|
-
|
|
837
|
-
gl .bindBuffer (gl .ARRAY_BUFFER, this .coordIndexBuffer);
|
|
838
|
-
gl .bufferData (gl .ARRAY_BUFFER, this .coordIndices .getValue (), gl .DYNAMIC_DRAW);
|
|
839
|
-
|
|
840
|
-
// Transfer attribArrays.
|
|
841
|
-
|
|
842
|
-
for (let i = this .attribBuffers .length, length = this .attribArrays .length; i < length; ++ i)
|
|
843
|
-
this .attribBuffers .push (gl .createBuffer ());
|
|
844
|
-
|
|
845
|
-
for (let i = 0, length = this .attribArrays .length; i < length; ++ i)
|
|
846
|
-
{
|
|
847
|
-
gl .bindBuffer (gl .ARRAY_BUFFER, this .attribBuffers [i]);
|
|
848
|
-
gl .bufferData (gl .ARRAY_BUFFER, this .attribArrays [i] .getValue (), gl .DYNAMIC_DRAW);
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
// Transfer fog depths.
|
|
852
|
-
|
|
853
|
-
const lastHasFogCoords = this .hasFogCoords;
|
|
854
|
-
|
|
855
|
-
gl .bindBuffer (gl .ARRAY_BUFFER, this .fogDepthBuffer);
|
|
856
|
-
gl .bufferData (gl .ARRAY_BUFFER, this .fogDepths .getValue (), gl .DYNAMIC_DRAW);
|
|
857
|
-
|
|
858
|
-
this .hasFogCoords = !! this .fogDepths .length;
|
|
859
|
-
|
|
860
|
-
if (this .hasFogCoords !== lastHasFogCoords)
|
|
861
|
-
this .updateVertexArrays ();
|
|
862
|
-
|
|
863
|
-
// Transfer colors.
|
|
864
|
-
|
|
865
|
-
const lastColorMaterial = this .colorMaterial;
|
|
866
|
-
|
|
867
|
-
gl .bindBuffer (gl .ARRAY_BUFFER, this .colorBuffer);
|
|
868
|
-
gl .bufferData (gl .ARRAY_BUFFER, this .colors .getValue (), gl .DYNAMIC_DRAW);
|
|
869
|
-
|
|
870
|
-
this .colorMaterial = !! this .colors .length;
|
|
871
|
-
|
|
872
|
-
if (this .colorMaterial !== lastColorMaterial)
|
|
873
|
-
this .updateVertexArrays ();
|
|
874
|
-
|
|
875
|
-
// Transfer multiTexCoords.
|
|
876
|
-
|
|
877
|
-
for (let i = 0, length = this .multiTexCoords .length; i < length; ++ i)
|
|
878
|
-
{
|
|
879
|
-
gl .bindBuffer (gl .ARRAY_BUFFER, this .texCoordBuffers [i]);
|
|
880
|
-
gl .bufferData (gl .ARRAY_BUFFER, this .multiTexCoords [i] .getValue (), gl .DYNAMIC_DRAW);
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
// Transfer normals or flat normals.
|
|
884
|
-
|
|
885
|
-
const lastHasNormals = this .hasNormals;
|
|
886
|
-
|
|
887
|
-
this .set_shading__ (this .getBrowser () .getBrowserOptions () ._Shading);
|
|
888
|
-
|
|
889
|
-
this .hasNormals = !! this .normals .length;
|
|
890
|
-
|
|
891
|
-
if (this .hasNormals !== lastHasNormals)
|
|
892
|
-
this .updateVertexArrays ();
|
|
893
|
-
|
|
894
|
-
// Transfer vertices.
|
|
895
|
-
|
|
896
|
-
gl .bindBuffer (gl .ARRAY_BUFFER, this .vertexBuffer);
|
|
897
|
-
gl .bufferData (gl .ARRAY_BUFFER, this .vertices .getValue (), gl .DYNAMIC_DRAW);
|
|
898
|
-
|
|
899
|
-
this .vertexCount = this .vertices .length / 4;
|
|
900
|
-
},
|
|
901
|
-
updateGeometryKey ()
|
|
902
|
-
{
|
|
903
|
-
this .geometryKey = "";
|
|
904
|
-
this .geometryKey += this .geometryType;
|
|
905
|
-
this .geometryKey += this .hasFogCoords ? "1" : "0";
|
|
906
|
-
this .geometryKey += this .colorMaterial ? "1" : "0";
|
|
907
|
-
this .geometryKey += this .hasNormals ? "1" : "0";
|
|
908
|
-
},
|
|
909
|
-
updateRenderFunctions ()
|
|
910
|
-
{
|
|
911
|
-
if (this .vertexCount)
|
|
912
|
-
{
|
|
913
|
-
// Use default render functions.
|
|
914
|
-
|
|
915
|
-
delete this .displaySimple;
|
|
916
|
-
delete this .display;
|
|
917
|
-
delete this .displaySimpleParticles;
|
|
918
|
-
delete this .displayParticles;
|
|
919
|
-
}
|
|
920
|
-
else
|
|
921
|
-
{
|
|
922
|
-
// Use no render function.
|
|
923
|
-
|
|
924
|
-
this .displaySimple = Function .prototype;
|
|
925
|
-
this .display = Function .prototype;
|
|
926
|
-
this .displaySimpleParticles = Function .prototype;
|
|
927
|
-
this .displayParticles = Function .prototype;
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
traverse (type, renderObject)
|
|
931
|
-
{ },
|
|
932
|
-
displaySimple (gl, renderContext, shaderNode)
|
|
933
|
-
{
|
|
934
|
-
if (this .vertexArrayObject .enable (shaderNode))
|
|
935
|
-
{
|
|
936
|
-
if (this .coordIndices .length)
|
|
937
|
-
shaderNode .enableCoordIndexAttribute (gl, this .coordIndexBuffer, 0, 0);
|
|
938
|
-
|
|
939
|
-
if (this .multiTexCoords .length)
|
|
940
|
-
shaderNode .enableTexCoordAttribute (gl, this .texCoordBuffers, 0, 0);
|
|
941
|
-
|
|
942
|
-
if (this .hasNormals)
|
|
943
|
-
shaderNode .enableNormalAttribute (gl, this .normalBuffer, 0, 0);
|
|
944
|
-
|
|
945
|
-
shaderNode .enableVertexAttribute (gl, this .vertexBuffer, 0, 0);
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
gl .drawArrays (this .primitiveMode, 0, this .vertexCount);
|
|
949
|
-
},
|
|
950
|
-
display (gl, renderContext)
|
|
951
|
-
{
|
|
952
|
-
const
|
|
953
|
-
browser = this .getBrowser (),
|
|
954
|
-
appearanceNode = renderContext .appearanceNode,
|
|
955
|
-
shaderNode = appearanceNode .getShader (this, renderContext);
|
|
956
|
-
|
|
957
|
-
if (this .solid || !appearanceNode .getBackMaterial () || browser .getWireframe ())
|
|
958
|
-
{
|
|
959
|
-
this .displayGeometry (gl, renderContext, appearanceNode, shaderNode, true, true);
|
|
960
|
-
}
|
|
961
|
-
else
|
|
962
|
-
{
|
|
963
|
-
const backShaderNode = appearanceNode .getBackShader (this, renderContext);
|
|
964
|
-
|
|
965
|
-
this .displayGeometry (gl, renderContext, appearanceNode, backShaderNode, true, false);
|
|
966
|
-
this .displayGeometry (gl, renderContext, appearanceNode, shaderNode, false, true);
|
|
967
|
-
}
|
|
968
|
-
},
|
|
969
|
-
displayGeometry (gl, renderContext, appearanceNode, shaderNode, back, front)
|
|
970
|
-
{
|
|
971
|
-
const
|
|
972
|
-
browser = this .getBrowser (),
|
|
973
|
-
blendModeNode = appearanceNode .getBlendMode (),
|
|
974
|
-
attribNodes = this .attribNodes,
|
|
975
|
-
attribBuffers = this .attribBuffers,
|
|
976
|
-
primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
|
|
977
|
-
|
|
978
|
-
blendModeNode ?.enable (gl);
|
|
979
|
-
|
|
980
|
-
shaderNode .enable (gl);
|
|
981
|
-
shaderNode .setUniforms (gl, this, renderContext, front);
|
|
982
|
-
|
|
983
|
-
// Setup vertex attributes.
|
|
984
|
-
|
|
985
|
-
if (this .vertexArrayObject .enable (shaderNode))
|
|
986
|
-
{
|
|
987
|
-
if (this .coordIndices .length)
|
|
988
|
-
shaderNode .enableCoordIndexAttribute (gl, this .coordIndexBuffer, 0, 0);
|
|
989
|
-
|
|
990
|
-
for (let i = 0, length = attribNodes .length; i < length; ++ i)
|
|
991
|
-
attribNodes [i] .enable (gl, shaderNode, attribBuffers [i]);
|
|
992
|
-
|
|
993
|
-
if (this .hasFogCoords)
|
|
994
|
-
shaderNode .enableFogDepthAttribute (gl, this .fogDepthBuffer, 0, 0);
|
|
995
|
-
|
|
996
|
-
if (this .colorMaterial)
|
|
997
|
-
shaderNode .enableColorAttribute (gl, this .colorBuffer, 0, 0);
|
|
998
|
-
|
|
999
|
-
shaderNode .enableTexCoordAttribute (gl, this .texCoordBuffers, 0, 0);
|
|
1000
|
-
shaderNode .enableNormalAttribute (gl, this .normalBuffer, 0, 0);
|
|
1001
|
-
shaderNode .enableVertexAttribute (gl, this .vertexBuffer, 0, 0);
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
// Draw depending on wireframe, solid and transparent.
|
|
1005
|
-
|
|
1006
|
-
if (browser .getWireframe ())
|
|
1007
|
-
{
|
|
1008
|
-
for (let i = 0, length = this .vertexCount; i < length; i += 3)
|
|
1009
|
-
gl .drawArrays (primitiveMode, i, 3);
|
|
1010
|
-
}
|
|
1011
|
-
else
|
|
1012
|
-
{
|
|
1013
|
-
const positiveScale = Matrix4 .prototype .determinant3 .call (renderContext .modelViewMatrix) > 0;
|
|
1014
|
-
|
|
1015
|
-
gl .frontFace (positiveScale ? this .frontFace : this .backFace .get (this .frontFace));
|
|
1016
|
-
|
|
1017
|
-
if (renderContext .transparent || back !== front)
|
|
1018
|
-
{
|
|
1019
|
-
// Render transparent or back or front.
|
|
1020
|
-
|
|
1021
|
-
gl .enable (gl .CULL_FACE);
|
|
1022
|
-
|
|
1023
|
-
// Render back.
|
|
1024
|
-
|
|
1025
|
-
if (back && !this .solid)
|
|
1026
|
-
{
|
|
1027
|
-
gl .cullFace (gl .FRONT);
|
|
1028
|
-
gl .drawArrays (primitiveMode, 0, this .vertexCount);
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
// Render front.
|
|
1032
|
-
|
|
1033
|
-
if (front)
|
|
1034
|
-
{
|
|
1035
|
-
gl .cullFace (gl .BACK);
|
|
1036
|
-
gl .drawArrays (primitiveMode, 0, this .vertexCount);
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
else
|
|
1040
|
-
{
|
|
1041
|
-
// Render solid or both sides.
|
|
1042
|
-
|
|
1043
|
-
if (this .solid)
|
|
1044
|
-
gl .enable (gl .CULL_FACE);
|
|
1045
|
-
else
|
|
1046
|
-
gl .disable (gl .CULL_FACE);
|
|
1047
|
-
|
|
1048
|
-
gl .drawArrays (primitiveMode, 0, this .vertexCount);
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
blendModeNode ?.disable (gl);
|
|
1053
|
-
},
|
|
1054
|
-
displaySimpleParticles (gl, shaderNode, particleSystem)
|
|
1055
|
-
{
|
|
1056
|
-
const outputParticles = particleSystem .outputParticles;
|
|
1057
|
-
|
|
1058
|
-
if (outputParticles .vertexArrayObject .update (this .updateParticles) .enable (shaderNode))
|
|
1059
|
-
{
|
|
1060
|
-
const { particleStride, particleOffset, matrixOffset } = particleSystem;
|
|
1061
|
-
|
|
1062
|
-
shaderNode .enableParticleAttribute (gl, outputParticles, particleStride, particleOffset, 1);
|
|
1063
|
-
shaderNode .enableParticleMatrixAttribute (gl, outputParticles, particleStride, matrixOffset, 1);
|
|
1064
|
-
shaderNode .enableTexCoordAttribute (gl, this .texCoordBuffers, 0, 0);
|
|
1065
|
-
shaderNode .enableNormalAttribute (gl, this .normalBuffer, 0, 0);
|
|
1066
|
-
shaderNode .enableVertexAttribute (gl, this .vertexBuffer, 0, 0);
|
|
1067
|
-
|
|
1068
|
-
this .updateParticles = false;
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
gl .drawArraysInstanced (this .primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
|
|
1072
|
-
},
|
|
1073
|
-
displayParticles (gl, renderContext, particleSystem)
|
|
1074
|
-
{
|
|
1075
|
-
const
|
|
1076
|
-
browser = this .getBrowser (),
|
|
1077
|
-
appearanceNode = renderContext .appearanceNode,
|
|
1078
|
-
shaderNode = appearanceNode .getShader (this, renderContext);
|
|
1079
|
-
|
|
1080
|
-
if (this .solid || !appearanceNode .getBackMaterial () || browser .getWireframe ())
|
|
1081
|
-
{
|
|
1082
|
-
this .displayParticlesGeometry (gl, renderContext, appearanceNode, shaderNode, true, true, particleSystem);
|
|
1083
|
-
}
|
|
1084
|
-
else
|
|
1085
|
-
{
|
|
1086
|
-
const backShaderNode = appearanceNode .getBackShader (this, renderContext);
|
|
1087
|
-
|
|
1088
|
-
this .displayParticlesGeometry (gl, renderContext, appearanceNode, backShaderNode, true, false, particleSystem);
|
|
1089
|
-
this .displayParticlesGeometry (gl, renderContext, appearanceNode, shaderNode, false, true, particleSystem);
|
|
1090
|
-
}
|
|
1091
|
-
},
|
|
1092
|
-
displayParticlesGeometry (gl, renderContext, appearanceNode, shaderNode, back, front, particleSystem)
|
|
1093
|
-
{
|
|
1094
|
-
const
|
|
1095
|
-
browser = this .getBrowser (),
|
|
1096
|
-
blendModeNode = appearanceNode .getBlendMode (),
|
|
1097
|
-
attribNodes = this .attribNodes,
|
|
1098
|
-
attribBuffers = this .attribBuffers,
|
|
1099
|
-
primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
|
|
1100
|
-
|
|
1101
|
-
blendModeNode ?.enable (gl);
|
|
1102
|
-
|
|
1103
|
-
// Setup shader.
|
|
1104
|
-
|
|
1105
|
-
shaderNode .enable (gl);
|
|
1106
|
-
shaderNode .setUniforms (gl, this, renderContext, front);
|
|
1107
|
-
|
|
1108
|
-
// Setup vertex attributes.
|
|
1109
|
-
|
|
1110
|
-
const outputParticles = particleSystem .outputParticles;
|
|
1111
|
-
|
|
1112
|
-
if (outputParticles .vertexArrayObject .update (this .updateParticles) .enable (shaderNode))
|
|
1113
|
-
{
|
|
1114
|
-
const { particleStride, particleOffset, matrixOffset } = particleSystem;
|
|
1115
|
-
|
|
1116
|
-
shaderNode .enableParticleAttribute (gl, outputParticles, particleStride, particleOffset, 1);
|
|
1117
|
-
shaderNode .enableParticleMatrixAttribute (gl, outputParticles, particleStride, matrixOffset, 1);
|
|
1118
|
-
|
|
1119
|
-
for (let i = 0, length = attribNodes .length; i < length; ++ i)
|
|
1120
|
-
attribNodes [i] .enable (gl, shaderNode, attribBuffers [i]);
|
|
1121
|
-
|
|
1122
|
-
if (this .hasFogCoords)
|
|
1123
|
-
shaderNode .enableFogDepthAttribute (gl, this .fogDepthBuffer, 0, 0);
|
|
1124
|
-
|
|
1125
|
-
if (this .colorMaterial)
|
|
1126
|
-
shaderNode .enableColorAttribute (gl, this .colorBuffer, 0, 0);
|
|
1127
|
-
|
|
1128
|
-
shaderNode .enableTexCoordAttribute (gl, this .texCoordBuffers, 0, 0);
|
|
1129
|
-
shaderNode .enableNormalAttribute (gl, this .normalBuffer, 0, 0);
|
|
1130
|
-
shaderNode .enableVertexAttribute (gl, this .vertexBuffer, 0, 0);
|
|
1131
|
-
|
|
1132
|
-
this .updateParticles = false;
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
// Draw depending on wireframe, solid and transparent.
|
|
1136
|
-
|
|
1137
|
-
const positiveScale = Matrix4 .prototype .determinant3 .call (renderContext .modelViewMatrix) > 0;
|
|
1138
|
-
|
|
1139
|
-
gl .frontFace (positiveScale ? this .frontFace : this .backFace .get (this .frontFace));
|
|
1140
|
-
|
|
1141
|
-
if (renderContext .transparent || back !== front)
|
|
1142
|
-
{
|
|
1143
|
-
// Render transparent or back or front.
|
|
1144
|
-
|
|
1145
|
-
gl .enable (gl .CULL_FACE);
|
|
1146
|
-
|
|
1147
|
-
if (back && !this .solid)
|
|
1148
|
-
{
|
|
1149
|
-
gl .cullFace (gl .FRONT);
|
|
1150
|
-
gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
if (front)
|
|
1154
|
-
{
|
|
1155
|
-
gl .cullFace (gl .BACK);
|
|
1156
|
-
gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
else
|
|
1160
|
-
{
|
|
1161
|
-
// Render solid or both sides.
|
|
1162
|
-
|
|
1163
|
-
if (this .solid)
|
|
1164
|
-
gl .enable (gl .CULL_FACE);
|
|
1165
|
-
else
|
|
1166
|
-
gl .disable (gl .CULL_FACE);
|
|
1167
|
-
|
|
1168
|
-
gl .drawArraysInstanced (primitiveMode, 0, this .vertexCount, particleSystem .numParticles);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
blendModeNode ?.disable (gl);
|
|
1172
|
-
},
|
|
1173
|
-
});
|
|
1174
|
-
|
|
1175
|
-
Object .defineProperties (X3DGeometryNode,
|
|
1176
|
-
{
|
|
1177
|
-
typeName:
|
|
1178
|
-
{
|
|
1179
|
-
value: "X3DGeometryNode",
|
|
1180
|
-
enumerable: true,
|
|
1181
|
-
},
|
|
1182
|
-
componentName:
|
|
1183
|
-
{
|
|
1184
|
-
value: "Rendering",
|
|
1185
|
-
enumerable: true,
|
|
1186
|
-
},
|
|
1187
|
-
});
|
|
1188
|
-
|
|
1189
|
-
export default X3DGeometryNode;
|