@onerjs/core 8.41.5 → 8.41.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Animations/animation.d.ts +6 -2
- package/Animations/animation.js +28 -4
- package/Animations/animation.js.map +1 -1
- package/Animations/animationGroup.d.ts +2 -1
- package/Animations/animationGroup.js +3 -2
- package/Animations/animationGroup.js.map +1 -1
- package/Animations/animatorAvatar.d.ts +161 -0
- package/Animations/animatorAvatar.js +573 -0
- package/Animations/animatorAvatar.js.map +1 -0
- package/Animations/index.d.ts +1 -0
- package/Animations/index.js +1 -0
- package/Animations/index.js.map +1 -1
- package/AudioV2/webAudio/webAudioSoundSource.d.ts +2 -2
- package/AudioV2/webAudio/webAudioSoundSource.js +12 -2
- package/AudioV2/webAudio/webAudioSoundSource.js.map +1 -1
- package/Bones/index.d.ts +1 -0
- package/Bones/index.js +1 -0
- package/Bones/index.js.map +1 -1
- package/Bones/skeleton.d.ts +13 -0
- package/Bones/skeleton.functions.d.ts +26 -0
- package/Bones/skeleton.functions.js +91 -0
- package/Bones/skeleton.functions.js.map +1 -0
- package/Bones/skeleton.js +26 -0
- package/Bones/skeleton.js.map +1 -1
- package/Cameras/Inputs/geospatialCameraPointersInput.d.ts +16 -0
- package/Cameras/Inputs/geospatialCameraPointersInput.js +19 -3
- package/Cameras/Inputs/geospatialCameraPointersInput.js.map +1 -1
- package/Cameras/Limits/geospatialLimits.d.ts +0 -6
- package/Cameras/Limits/geospatialLimits.js +0 -6
- package/Cameras/Limits/geospatialLimits.js.map +1 -1
- package/Cameras/geospatialCamera.d.ts +5 -0
- package/Cameras/geospatialCamera.js +54 -25
- package/Cameras/geospatialCamera.js.map +1 -1
- package/Cameras/geospatialCameraMovement.d.ts +8 -1
- package/Cameras/geospatialCameraMovement.js +29 -8
- package/Cameras/geospatialCameraMovement.js.map +1 -1
- package/Collisions/gpuPicker.d.ts +11 -0
- package/Collisions/gpuPicker.js +148 -19
- package/Collisions/gpuPicker.js.map +1 -1
- package/Debug/skeletonViewer.d.ts +4 -8
- package/Debug/skeletonViewer.js +13 -22
- package/Debug/skeletonViewer.js.map +1 -1
- package/Engines/Extensions/engine.multiview.d.ts +2 -0
- package/Engines/Extensions/engine.multiview.js +7 -3
- package/Engines/Extensions/engine.multiview.js.map +1 -1
- package/Engines/abstractEngine.d.ts +2 -2
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/constants.d.ts +4 -0
- package/Engines/constants.js +4 -0
- package/Engines/constants.js.map +1 -1
- package/Engines/webgpuEngine.d.ts +1 -4
- package/Engines/webgpuEngine.js +8 -6
- package/Engines/webgpuEngine.js.map +1 -1
- package/FrameGraph/frameGraphContext.js +1 -1
- package/FrameGraph/frameGraphContext.js.map +1 -1
- package/FrameGraph/frameGraphRenderContext.js +2 -2
- package/FrameGraph/frameGraphRenderContext.js.map +1 -1
- package/Instrumentation/engineInstrumentation.js +2 -1
- package/Instrumentation/engineInstrumentation.js.map +1 -1
- package/Layers/effectLayer.js +1 -3
- package/Layers/effectLayer.js.map +1 -1
- package/Lights/Shadows/cascadedShadowGenerator.js +2 -2
- package/Lights/Shadows/cascadedShadowGenerator.js.map +1 -1
- package/Lights/Shadows/shadowGenerator.js +3 -4
- package/Lights/Shadows/shadowGenerator.js.map +1 -1
- package/Lights/lightingVolume.js +1 -1
- package/Lights/lightingVolume.js.map +1 -1
- package/Materials/Background/backgroundMaterial.js +37 -2
- package/Materials/Background/backgroundMaterial.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.d.ts +109 -0
- package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.js +210 -0
- package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.js.map +1 -0
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.d.ts +1 -0
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +71 -15
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingSolidColorMaterialPlugin.d.ts +86 -0
- package/Materials/GaussianSplatting/gaussianSplattingSolidColorMaterialPlugin.js +161 -0
- package/Materials/GaussianSplatting/gaussianSplattingSolidColorMaterialPlugin.js.map +1 -0
- package/Materials/GreasedLine/greasedLinePluginMaterial.js +0 -6
- package/Materials/GreasedLine/greasedLinePluginMaterial.js.map +1 -1
- package/Materials/GreasedLine/greasedLinePluginMaterialShadersGLSL.js +0 -1
- package/Materials/GreasedLine/greasedLinePluginMaterialShadersGLSL.js.map +1 -1
- package/Materials/GreasedLine/greasedLinePluginMaterialShadersWGSL.js +0 -1
- package/Materials/GreasedLine/greasedLinePluginMaterialShadersWGSL.js.map +1 -1
- package/Materials/Node/Blocks/Dual/clipPlanesBlock.d.ts +14 -0
- package/Materials/Node/Blocks/Dual/clipPlanesBlock.js +14 -0
- package/Materials/Node/Blocks/Dual/clipPlanesBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/currentScreenBlock.d.ts +20 -1
- package/Materials/Node/Blocks/Dual/currentScreenBlock.js +20 -1
- package/Materials/Node/Blocks/Dual/currentScreenBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/depthSourceBlock.d.ts +13 -0
- package/Materials/Node/Blocks/Dual/depthSourceBlock.js +13 -0
- package/Materials/Node/Blocks/Dual/depthSourceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/fogBlock.d.ts +21 -0
- package/Materials/Node/Blocks/Dual/fogBlock.js +21 -0
- package/Materials/Node/Blocks/Dual/fogBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/imageSourceBlock.d.ts +21 -0
- package/Materials/Node/Blocks/Dual/imageSourceBlock.js +21 -0
- package/Materials/Node/Blocks/Dual/imageSourceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/lightBlock.d.ts +38 -0
- package/Materials/Node/Blocks/Dual/lightBlock.js +38 -0
- package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.d.ts +29 -0
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js +29 -0
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/reflectionTextureBlock.d.ts +5 -0
- package/Materials/Node/Blocks/Dual/reflectionTextureBlock.js +5 -0
- package/Materials/Node/Blocks/Dual/reflectionTextureBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.d.ts +16 -0
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.js +16 -0
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/smartFilterTextureBlock.d.ts +16 -0
- package/Materials/Node/Blocks/Dual/smartFilterTextureBlock.js +16 -0
- package/Materials/Node/Blocks/Dual/smartFilterTextureBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/textureBlock.d.ts +34 -0
- package/Materials/Node/Blocks/Dual/textureBlock.js +34 -0
- package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/TBNBlock.d.ts +17 -0
- package/Materials/Node/Blocks/Fragment/TBNBlock.js +17 -2
- package/Materials/Node/Blocks/Fragment/TBNBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/ambientOcclusionBlock.d.ts +7 -0
- package/Materials/Node/Blocks/Fragment/ambientOcclusionBlock.js +7 -0
- package/Materials/Node/Blocks/Fragment/ambientOcclusionBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.d.ts +21 -0
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js +21 -0
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/heightToNormalBlock.d.ts +10 -0
- package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js +10 -0
- package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/imageProcessingBlock.d.ts +28 -0
- package/Materials/Node/Blocks/Fragment/imageProcessingBlock.js +28 -0
- package/Materials/Node/Blocks/Fragment/imageProcessingBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.d.ts +30 -0
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js +30 -1
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/screenSizeBlock.d.ts +4 -0
- package/Materials/Node/Blocks/Fragment/screenSizeBlock.js +4 -0
- package/Materials/Node/Blocks/Fragment/screenSizeBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/screenSpaceBlock.d.ts +5 -0
- package/Materials/Node/Blocks/Fragment/screenSpaceBlock.js +5 -0
- package/Materials/Node/Blocks/Fragment/screenSpaceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/twirlBlock.d.ts +3 -0
- package/Materials/Node/Blocks/Fragment/twirlBlock.js +3 -0
- package/Materials/Node/Blocks/Fragment/twirlBlock.js.map +1 -1
- package/Materials/Node/Blocks/GaussianSplatting/splatReaderBlock.d.ts +6 -0
- package/Materials/Node/Blocks/GaussianSplatting/splatReaderBlock.js +6 -0
- package/Materials/Node/Blocks/GaussianSplatting/splatReaderBlock.js.map +1 -1
- package/Materials/Node/Blocks/Input/inputBlock.d.ts +16 -0
- package/Materials/Node/Blocks/Input/inputBlock.js +16 -1
- package/Materials/Node/Blocks/Input/inputBlock.js.map +1 -1
- package/Materials/Node/Blocks/Input/prePassTextureBlock.d.ts +5 -0
- package/Materials/Node/Blocks/Input/prePassTextureBlock.js +5 -0
- package/Materials/Node/Blocks/Input/prePassTextureBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/anisotropyBlock.d.ts +10 -0
- package/Materials/Node/Blocks/PBR/anisotropyBlock.js +10 -1
- package/Materials/Node/Blocks/PBR/anisotropyBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/clearCoatBlock.d.ts +23 -0
- package/Materials/Node/Blocks/PBR/clearCoatBlock.js +23 -1
- package/Materials/Node/Blocks/PBR/clearCoatBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/iridescenceBlock.d.ts +17 -0
- package/Materials/Node/Blocks/PBR/iridescenceBlock.js +17 -0
- package/Materials/Node/Blocks/PBR/iridescenceBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.d.ts +41 -0
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +41 -0
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/reflectionBlock.d.ts +21 -0
- package/Materials/Node/Blocks/PBR/reflectionBlock.js +21 -0
- package/Materials/Node/Blocks/PBR/reflectionBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/refractionBlock.d.ts +29 -0
- package/Materials/Node/Blocks/PBR/refractionBlock.js +29 -0
- package/Materials/Node/Blocks/PBR/refractionBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/sheenBlock.d.ts +14 -0
- package/Materials/Node/Blocks/PBR/sheenBlock.js +14 -0
- package/Materials/Node/Blocks/PBR/sheenBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/subSurfaceBlock.d.ts +7 -0
- package/Materials/Node/Blocks/PBR/subSurfaceBlock.js +7 -0
- package/Materials/Node/Blocks/PBR/subSurfaceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Particle/particleTextureBlock.d.ts +23 -0
- package/Materials/Node/Blocks/Particle/particleTextureBlock.js +23 -0
- package/Materials/Node/Blocks/Particle/particleTextureBlock.js.map +1 -1
- package/Materials/Node/Blocks/Teleport/teleportInBlock.d.ts +6 -0
- package/Materials/Node/Blocks/Teleport/teleportInBlock.js +6 -0
- package/Materials/Node/Blocks/Teleport/teleportInBlock.js.map +1 -1
- package/Materials/Node/Blocks/Teleport/teleportOutBlock.d.ts +17 -0
- package/Materials/Node/Blocks/Teleport/teleportOutBlock.js +17 -0
- package/Materials/Node/Blocks/Teleport/teleportOutBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/bonesBlock.d.ts +22 -0
- package/Materials/Node/Blocks/Vertex/bonesBlock.js +22 -0
- package/Materials/Node/Blocks/Vertex/bonesBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/instancesBlock.d.ts +13 -0
- package/Materials/Node/Blocks/Vertex/instancesBlock.js +13 -0
- package/Materials/Node/Blocks/Vertex/instancesBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/lightInformationBlock.d.ts +20 -0
- package/Materials/Node/Blocks/Vertex/lightInformationBlock.js +20 -0
- package/Materials/Node/Blocks/Vertex/lightInformationBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/morphTargetsBlock.d.ts +27 -0
- package/Materials/Node/Blocks/Vertex/morphTargetsBlock.js +27 -0
- package/Materials/Node/Blocks/Vertex/morphTargetsBlock.js.map +1 -1
- package/Materials/Node/Blocks/clampBlock.d.ts +10 -0
- package/Materials/Node/Blocks/clampBlock.js +10 -0
- package/Materials/Node/Blocks/clampBlock.js.map +1 -1
- package/Materials/Node/Blocks/cloudBlock.d.ts +10 -0
- package/Materials/Node/Blocks/cloudBlock.js +10 -0
- package/Materials/Node/Blocks/cloudBlock.js.map +1 -1
- package/Materials/Node/Blocks/colorMergerBlock.d.ts +10 -0
- package/Materials/Node/Blocks/colorMergerBlock.js +10 -0
- package/Materials/Node/Blocks/colorMergerBlock.js.map +1 -1
- package/Materials/Node/Blocks/conditionalBlock.d.ts +14 -0
- package/Materials/Node/Blocks/conditionalBlock.js +14 -0
- package/Materials/Node/Blocks/conditionalBlock.js.map +1 -1
- package/Materials/Node/Blocks/curveBlock.d.ts +10 -0
- package/Materials/Node/Blocks/curveBlock.js +10 -0
- package/Materials/Node/Blocks/curveBlock.js.map +1 -1
- package/Materials/Node/Blocks/customBlock.d.ts +10 -0
- package/Materials/Node/Blocks/customBlock.js +10 -0
- package/Materials/Node/Blocks/customBlock.js.map +1 -1
- package/Materials/Node/Blocks/debugBlock.d.ts +10 -0
- package/Materials/Node/Blocks/debugBlock.js +10 -0
- package/Materials/Node/Blocks/debugBlock.js.map +1 -1
- package/Materials/Node/Blocks/fresnelBlock.d.ts +4 -0
- package/Materials/Node/Blocks/fresnelBlock.js +4 -0
- package/Materials/Node/Blocks/fresnelBlock.js.map +1 -1
- package/Materials/Node/Blocks/gradientBlock.d.ts +10 -0
- package/Materials/Node/Blocks/gradientBlock.js +10 -0
- package/Materials/Node/Blocks/gradientBlock.js.map +1 -1
- package/Materials/Node/Blocks/loopBlock.d.ts +10 -0
- package/Materials/Node/Blocks/loopBlock.js +10 -0
- package/Materials/Node/Blocks/loopBlock.js.map +1 -1
- package/Materials/Node/Blocks/matrixBuilderBlock.d.ts +1 -0
- package/Materials/Node/Blocks/matrixBuilderBlock.js +1 -0
- package/Materials/Node/Blocks/matrixBuilderBlock.js.map +1 -1
- package/Materials/Node/Blocks/meshAttributeExistsBlock.d.ts +10 -0
- package/Materials/Node/Blocks/meshAttributeExistsBlock.js +10 -0
- package/Materials/Node/Blocks/meshAttributeExistsBlock.js.map +1 -1
- package/Materials/Node/Blocks/pannerBlock.d.ts +5 -0
- package/Materials/Node/Blocks/pannerBlock.js +5 -0
- package/Materials/Node/Blocks/pannerBlock.js.map +1 -1
- package/Materials/Node/Blocks/remapBlock.d.ts +10 -0
- package/Materials/Node/Blocks/remapBlock.js +10 -0
- package/Materials/Node/Blocks/remapBlock.js.map +1 -1
- package/Materials/Node/Blocks/rotate2dBlock.d.ts +1 -0
- package/Materials/Node/Blocks/rotate2dBlock.js +1 -0
- package/Materials/Node/Blocks/rotate2dBlock.js.map +1 -1
- package/Materials/Node/Blocks/transformBlock.d.ts +10 -0
- package/Materials/Node/Blocks/transformBlock.js +10 -0
- package/Materials/Node/Blocks/transformBlock.js.map +1 -1
- package/Materials/Node/Blocks/triPlanarBlock.d.ts +22 -0
- package/Materials/Node/Blocks/triPlanarBlock.js +22 -0
- package/Materials/Node/Blocks/triPlanarBlock.js.map +1 -1
- package/Materials/Node/Blocks/trigonometryBlock.d.ts +10 -0
- package/Materials/Node/Blocks/trigonometryBlock.js +10 -0
- package/Materials/Node/Blocks/trigonometryBlock.js.map +1 -1
- package/Materials/Node/Blocks/vectorMergerBlock.d.ts +10 -0
- package/Materials/Node/Blocks/vectorMergerBlock.js +10 -0
- package/Materials/Node/Blocks/vectorMergerBlock.js.map +1 -1
- package/Materials/Node/Blocks/viewDirectionBlock.d.ts +5 -0
- package/Materials/Node/Blocks/viewDirectionBlock.js +5 -0
- package/Materials/Node/Blocks/viewDirectionBlock.js.map +1 -1
- package/Materials/Node/Blocks/waveBlock.d.ts +10 -0
- package/Materials/Node/Blocks/waveBlock.js +10 -0
- package/Materials/Node/Blocks/waveBlock.js.map +1 -1
- package/Materials/Node/Blocks/worleyNoise3DBlock.d.ts +1 -0
- package/Materials/Node/Blocks/worleyNoise3DBlock.js +1 -0
- package/Materials/Node/Blocks/worleyNoise3DBlock.js.map +1 -1
- package/Materials/Node/nodeMaterial.d.ts +13 -0
- package/Materials/Node/nodeMaterial.js +14 -2
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/Node/nodeMaterialBlock.d.ts +0 -3
- package/Materials/Node/nodeMaterialBlock.js +1 -6
- package/Materials/Node/nodeMaterialBlock.js.map +1 -1
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js +1 -2
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.js +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
- package/Materials/Textures/mirrorTexture.js +1 -1
- package/Materials/Textures/mirrorTexture.js.map +1 -1
- package/Materials/index.d.ts +2 -0
- package/Materials/index.js +2 -0
- package/Materials/index.js.map +1 -1
- package/Maths/math.constants.d.ts +2 -1
- package/Maths/math.constants.js +3 -2
- package/Maths/math.constants.js.map +1 -1
- package/Meshes/Builders/capsuleBuilder.js +0 -3
- package/Meshes/Builders/capsuleBuilder.js.map +1 -1
- package/Meshes/Builders/cylinderBuilder.d.ts +1 -1
- package/Meshes/Builders/cylinderBuilder.js +1 -2
- package/Meshes/Builders/cylinderBuilder.js.map +1 -1
- package/Meshes/Builders/decalBuilder.js +2 -0
- package/Meshes/Builders/decalBuilder.js.map +1 -1
- package/Meshes/Builders/discBuilder.js +0 -1
- package/Meshes/Builders/discBuilder.js.map +1 -1
- package/Meshes/Builders/groundBuilder.d.ts +50 -54
- package/Meshes/Builders/groundBuilder.js +50 -54
- package/Meshes/Builders/groundBuilder.js.map +1 -1
- package/Meshes/Builders/tiledBoxBuilder.d.ts +0 -26
- package/Meshes/Builders/tiledBoxBuilder.js +0 -26
- package/Meshes/Builders/tiledBoxBuilder.js.map +1 -1
- package/Meshes/Builders/tiledPlaneBuilder.d.ts +0 -25
- package/Meshes/Builders/tiledPlaneBuilder.js +0 -25
- package/Meshes/Builders/tiledPlaneBuilder.js.map +1 -1
- package/Meshes/Builders/torusBuilder.d.ts +0 -13
- package/Meshes/Builders/torusBuilder.js +0 -13
- package/Meshes/Builders/torusBuilder.js.map +1 -1
- package/Meshes/Builders/torusKnotBuilder.d.ts +0 -19
- package/Meshes/Builders/torusKnotBuilder.js +0 -19
- package/Meshes/Builders/torusKnotBuilder.js.map +1 -1
- package/Meshes/Compression/dracoCompressionWorker.js.map +1 -1
- package/Meshes/Compression/dracoDecoder.js.map +1 -1
- package/Meshes/Compression/dracoDecoder.types.d.ts +11 -0
- package/Meshes/Compression/dracoDecoder.types.js.map +1 -1
- package/Meshes/Compression/dracoEncoder.js.map +1 -1
- package/Meshes/Compression/meshoptCompression.js +0 -2
- package/Meshes/Compression/meshoptCompression.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +17 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
- package/Meshes/GreasedLine/greasedLineRibbonMesh.js +0 -8
- package/Meshes/GreasedLine/greasedLineRibbonMesh.js.map +1 -1
- package/Meshes/Node/Blocks/Instances/instantiateBaseBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Instances/instantiateBaseBlock.js +1 -0
- package/Meshes/Node/Blocks/Instances/instantiateBaseBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Instances/instantiateOnFacesBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Instances/instantiateOnFacesBlock.js +1 -0
- package/Meshes/Node/Blocks/Instances/instantiateOnFacesBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Instances/instantiateOnVerticesBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Instances/instantiateOnVerticesBlock.js +1 -0
- package/Meshes/Node/Blocks/Instances/instantiateOnVerticesBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Instances/instantiateOnVolumeBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Instances/instantiateOnVolumeBlock.js +1 -0
- package/Meshes/Node/Blocks/Instances/instantiateOnVolumeBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Matrices/scalingBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Matrices/scalingBlock.js +1 -0
- package/Meshes/Node/Blocks/Matrices/scalingBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Matrices/translationBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Matrices/translationBlock.js +1 -0
- package/Meshes/Node/Blocks/Matrices/translationBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/aggregatorBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Set/aggregatorBlock.js +1 -0
- package/Meshes/Node/Blocks/Set/aggregatorBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/latticeBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Set/latticeBlock.js +1 -0
- package/Meshes/Node/Blocks/Set/latticeBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/setColorsBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Set/setColorsBlock.js +1 -0
- package/Meshes/Node/Blocks/Set/setColorsBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/setMaterialIDBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Set/setMaterialIDBlock.js +1 -0
- package/Meshes/Node/Blocks/Set/setMaterialIDBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/setNormalsBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Set/setNormalsBlock.js +1 -0
- package/Meshes/Node/Blocks/Set/setNormalsBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/setPositionsBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Set/setPositionsBlock.js +1 -0
- package/Meshes/Node/Blocks/Set/setPositionsBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/setTangentsBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Set/setTangentsBlock.js +1 -0
- package/Meshes/Node/Blocks/Set/setTangentsBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/setUVsBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Set/setUVsBlock.js +1 -0
- package/Meshes/Node/Blocks/Set/setUVsBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/boxBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/boxBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/boxBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/capsuleBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/capsuleBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/capsuleBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/cylinderBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/cylinderBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/cylinderBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/discBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/discBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/discBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/gridBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/gridBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/gridBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/icoSphereBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/icoSphereBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/icoSphereBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/meshBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Sources/meshBlock.js +1 -0
- package/Meshes/Node/Blocks/Sources/meshBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/planeBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/planeBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/planeBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/pointListBlock.d.ts +2 -1
- package/Meshes/Node/Blocks/Sources/pointListBlock.js +2 -1
- package/Meshes/Node/Blocks/Sources/pointListBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/sphereBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/sphereBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/sphereBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Sources/torusBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/Sources/torusBlock.js +2 -0
- package/Meshes/Node/Blocks/Sources/torusBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Teleport/teleportInBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Teleport/teleportInBlock.js +1 -0
- package/Meshes/Node/Blocks/Teleport/teleportInBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Teleport/teleportOutBlock.d.ts +3 -0
- package/Meshes/Node/Blocks/Teleport/teleportOutBlock.js +3 -0
- package/Meshes/Node/Blocks/Teleport/teleportOutBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Textures/geometryTextureBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Textures/geometryTextureBlock.js +1 -1
- package/Meshes/Node/Blocks/Textures/geometryTextureBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Textures/geometryTextureFetchBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/Textures/geometryTextureFetchBlock.js +1 -0
- package/Meshes/Node/Blocks/Textures/geometryTextureFetchBlock.js.map +1 -1
- package/Meshes/Node/Blocks/booleanGeometryBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/booleanGeometryBlock.js +1 -1
- package/Meshes/Node/Blocks/booleanGeometryBlock.js.map +1 -1
- package/Meshes/Node/Blocks/cleanGeometryBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/cleanGeometryBlock.js +1 -0
- package/Meshes/Node/Blocks/cleanGeometryBlock.js.map +1 -1
- package/Meshes/Node/Blocks/conditionBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/conditionBlock.js +2 -0
- package/Meshes/Node/Blocks/conditionBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryClampBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/geometryClampBlock.js +1 -0
- package/Meshes/Node/Blocks/geometryClampBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryCollectionBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/geometryCollectionBlock.js +1 -0
- package/Meshes/Node/Blocks/geometryCollectionBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryCurveBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/geometryCurveBlock.js +2 -0
- package/Meshes/Node/Blocks/geometryCurveBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryEaseBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/geometryEaseBlock.js +2 -0
- package/Meshes/Node/Blocks/geometryEaseBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryInputBlock.d.ts +3 -0
- package/Meshes/Node/Blocks/geometryInputBlock.js +3 -0
- package/Meshes/Node/Blocks/geometryInputBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryOptimizeBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/geometryOptimizeBlock.js +1 -0
- package/Meshes/Node/Blocks/geometryOptimizeBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryTransformBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/geometryTransformBlock.js +1 -0
- package/Meshes/Node/Blocks/geometryTransformBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryTrigonometryBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/geometryTrigonometryBlock.js +2 -0
- package/Meshes/Node/Blocks/geometryTrigonometryBlock.js.map +1 -1
- package/Meshes/Node/Blocks/mappingBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/mappingBlock.js +1 -0
- package/Meshes/Node/Blocks/mappingBlock.js.map +1 -1
- package/Meshes/Node/Blocks/mathBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/mathBlock.js +1 -0
- package/Meshes/Node/Blocks/mathBlock.js.map +1 -1
- package/Meshes/Node/Blocks/mergeGeometryBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/mergeGeometryBlock.js +1 -0
- package/Meshes/Node/Blocks/mergeGeometryBlock.js.map +1 -1
- package/Meshes/Node/Blocks/randomBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/randomBlock.js +2 -0
- package/Meshes/Node/Blocks/randomBlock.js.map +1 -1
- package/Meshes/Node/Blocks/subdivideBlock.d.ts +1 -0
- package/Meshes/Node/Blocks/subdivideBlock.js +1 -0
- package/Meshes/Node/Blocks/subdivideBlock.js.map +1 -1
- package/Meshes/Node/Interfaces/nodeGeometryTextureData.d.ts +3 -0
- package/Meshes/Node/Interfaces/nodeGeometryTextureData.js.map +1 -1
- package/Meshes/Node/nodeGeometry.js +0 -2
- package/Meshes/Node/nodeGeometry.js.map +1 -1
- package/Meshes/Node/nodeGeometryBlockConnectionPoint.js +0 -1
- package/Meshes/Node/nodeGeometryBlockConnectionPoint.js.map +1 -1
- package/Meshes/Node/nodeGeometryBuildState.js +0 -1
- package/Meshes/Node/nodeGeometryBuildState.js.map +1 -1
- package/Meshes/WebGL/webGLDataBuffer.d.ts +2 -0
- package/Meshes/WebGL/webGLDataBuffer.js +2 -0
- package/Meshes/WebGL/webGLDataBuffer.js.map +1 -1
- package/Meshes/WebGPU/webgpuDataBuffer.d.ts +4 -0
- package/Meshes/WebGPU/webgpuDataBuffer.js +4 -0
- package/Meshes/WebGPU/webgpuDataBuffer.js.map +1 -1
- package/Meshes/abstractMesh.d.ts +1 -0
- package/Meshes/abstractMesh.decalMap.d.ts +1 -0
- package/Meshes/abstractMesh.decalMap.js.map +1 -1
- package/Meshes/abstractMesh.js +1 -6
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/csg.js +0 -6
- package/Meshes/csg.js.map +1 -1
- package/Meshes/csg2.js +1 -2
- package/Meshes/csg2.js.map +1 -1
- package/Meshes/geodesicMesh.d.ts +26 -0
- package/Meshes/geodesicMesh.js +18 -3
- package/Meshes/geodesicMesh.js.map +1 -1
- package/Meshes/groundMesh.d.ts +1 -0
- package/Meshes/groundMesh.js +1 -0
- package/Meshes/groundMesh.js.map +1 -1
- package/Meshes/index.js +0 -2
- package/Meshes/index.js.map +1 -1
- package/Meshes/instancedMesh.d.ts +18 -3
- package/Meshes/instancedMesh.js +11 -3
- package/Meshes/instancedMesh.js.map +1 -1
- package/Meshes/mesh.d.ts +291 -204
- package/Meshes/mesh.js +290 -213
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/mesh.vertexData.d.ts +15 -19
- package/Meshes/mesh.vertexData.js +15 -19
- package/Meshes/mesh.vertexData.js.map +1 -1
- package/Meshes/meshSimplification.d.ts +0 -1
- package/Meshes/meshSimplification.js +6 -1
- package/Meshes/meshSimplification.js.map +1 -1
- package/Meshes/meshSimplificationSceneComponent.d.ts +2 -0
- package/Meshes/meshSimplificationSceneComponent.js.map +1 -1
- package/Meshes/meshUVSpaceRenderer.d.ts +1 -0
- package/Meshes/meshUVSpaceRenderer.js.map +1 -1
- package/Meshes/polygonMesh.js +4 -0
- package/Meshes/polygonMesh.js.map +1 -1
- package/Meshes/subMesh.project.d.ts +1 -0
- package/Meshes/subMesh.project.js.map +1 -1
- package/Meshes/thinInstanceMesh.d.ts +5 -0
- package/Meshes/thinInstanceMesh.js.map +1 -1
- package/Meshes/transformNode.d.ts +1 -1
- package/Meshes/transformNode.js +1 -1
- package/Meshes/transformNode.js.map +1 -1
- package/Misc/dataStorage.d.ts +13 -0
- package/Misc/dataStorage.js +25 -0
- package/Misc/dataStorage.js.map +1 -1
- package/Morph/morphTarget.d.ts +9 -5
- package/Morph/morphTarget.js +15 -7
- package/Morph/morphTarget.js.map +1 -1
- package/Morph/morphTargetManager.d.ts +3 -1
- package/Morph/morphTargetManager.js +5 -2
- package/Morph/morphTargetManager.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/boxShapeBlock.js +1 -1
- package/Particles/Node/Blocks/Emitters/boxShapeBlock.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/coneShapeBlock.js +1 -1
- package/Particles/Node/Blocks/Emitters/coneShapeBlock.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/customShapeBlock.js +1 -1
- package/Particles/Node/Blocks/Emitters/customShapeBlock.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/cylinderShapeBlock.js +1 -1
- package/Particles/Node/Blocks/Emitters/cylinderShapeBlock.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/emitters.functions.js +3 -3
- package/Particles/Node/Blocks/Emitters/emitters.functions.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/meshShapeBlock.js +1 -1
- package/Particles/Node/Blocks/Emitters/meshShapeBlock.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/pointShapeBlock.js +1 -1
- package/Particles/Node/Blocks/Emitters/pointShapeBlock.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/sphereShapeBlock.js +1 -1
- package/Particles/Node/Blocks/Emitters/sphereShapeBlock.js.map +1 -1
- package/Particles/Node/Blocks/Update/basicPositionUpdateBlock.js +2 -2
- package/Particles/Node/Blocks/Update/basicPositionUpdateBlock.js.map +1 -1
- package/Particles/Node/Blocks/Update/updateNoiseBlock.js +7 -7
- package/Particles/Node/Blocks/Update/updateNoiseBlock.js.map +1 -1
- package/Particles/Node/Blocks/particleLocalVariableBlock.js +2 -2
- package/Particles/Node/Blocks/particleLocalVariableBlock.js.map +1 -1
- package/Particles/Node/nodeParticleBuildState.js +7 -7
- package/Particles/Node/nodeParticleBuildState.js.map +1 -1
- package/Particles/Node/nodeParticleSystemSet.helper.js +9 -4
- package/Particles/Node/nodeParticleSystemSet.helper.js.map +1 -1
- package/Particles/particle.d.ts +73 -61
- package/Particles/particle.js +106 -91
- package/Particles/particle.js.map +1 -1
- package/Particles/particleSystem.js +5 -5
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/thinParticleSystem.function.js +83 -83
- package/Particles/thinParticleSystem.function.js.map +1 -1
- package/Particles/thinParticleSystem.js +8 -8
- package/Particles/thinParticleSystem.js.map +1 -1
- package/Physics/v2/Plugins/havokPlugin.d.ts +89 -3
- package/Physics/v2/Plugins/havokPlugin.js +388 -53
- package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
- package/Probes/reflectionProbe.js +10 -7
- package/Probes/reflectionProbe.js.map +1 -1
- package/Rendering/depthRenderer.js +1 -1
- package/Rendering/depthRenderer.js.map +1 -1
- package/Rendering/objectRenderer.d.ts +3 -1
- package/Rendering/objectRenderer.js +28 -8
- package/Rendering/objectRenderer.js.map +1 -1
- package/Rendering/reflectiveShadowMap.js +1 -1
- package/Rendering/reflectiveShadowMap.js.map +1 -1
- package/Rendering/thinDepthPeelingRenderer.js +8 -0
- package/Rendering/thinDepthPeelingRenderer.js.map +1 -1
- package/Shaders/gaussianSplatting.fragment.js +8 -2
- package/Shaders/gaussianSplatting.fragment.js.map +1 -1
- package/Shaders/gaussianSplatting.vertex.js +8 -2
- package/Shaders/gaussianSplatting.vertex.js.map +1 -1
- package/ShadersWGSL/gaussianSplatting.fragment.js +7 -1
- package/ShadersWGSL/gaussianSplatting.fragment.js.map +1 -1
- package/ShadersWGSL/gaussianSplatting.vertex.js +8 -2
- package/ShadersWGSL/gaussianSplatting.vertex.js.map +1 -1
- package/package.json +1 -1
- package/scene.d.ts +22 -4
- package/scene.js +33 -20
- package/scene.js.map +1 -1
package/Meshes/mesh.d.ts
CHANGED
|
@@ -33,16 +33,27 @@ import type { AbstractEngine } from "../Engines/abstractEngine.js";
|
|
|
33
33
|
* @internal
|
|
34
34
|
**/
|
|
35
35
|
export declare class _CreationDataStorage {
|
|
36
|
+
/** @internal */
|
|
36
37
|
closePath?: boolean;
|
|
38
|
+
/** @internal */
|
|
37
39
|
closeArray?: boolean;
|
|
40
|
+
/** @internal */
|
|
38
41
|
idx: number[];
|
|
42
|
+
/** @internal */
|
|
39
43
|
dashSize: number;
|
|
44
|
+
/** @internal */
|
|
40
45
|
gapSize: number;
|
|
46
|
+
/** @internal */
|
|
41
47
|
path3D: Path3D;
|
|
48
|
+
/** @internal */
|
|
42
49
|
pathArray: Vector3[][];
|
|
50
|
+
/** @internal */
|
|
43
51
|
arc: number;
|
|
52
|
+
/** @internal */
|
|
44
53
|
radius: number;
|
|
54
|
+
/** @internal */
|
|
45
55
|
cap: number;
|
|
56
|
+
/** @internal */
|
|
46
57
|
tessellation: number;
|
|
47
58
|
}
|
|
48
59
|
/**
|
|
@@ -58,31 +69,54 @@ interface IInstanceDataStorageRenderPassVisibleInstances {
|
|
|
58
69
|
* @internal
|
|
59
70
|
**/
|
|
60
71
|
declare class _InstanceDataStorageRenderPass {
|
|
72
|
+
/** @internal */
|
|
61
73
|
visibleInstances: Nullable<IInstanceDataStorageRenderPassVisibleInstances>;
|
|
74
|
+
/** @internal */
|
|
62
75
|
batchCache: _InstancesBatch;
|
|
76
|
+
/** @internal */
|
|
63
77
|
batchCacheReplacementModeInFrozenMode: _InstancesBatch;
|
|
78
|
+
/** @internal */
|
|
64
79
|
instancesBufferSize: number;
|
|
80
|
+
/** @internal */
|
|
65
81
|
instancesBuffer: Nullable<Buffer>;
|
|
82
|
+
/** @internal */
|
|
66
83
|
instancesPreviousBuffer: Nullable<Buffer>;
|
|
84
|
+
/** @internal */
|
|
67
85
|
instancesData: Float32Array;
|
|
86
|
+
/** @internal */
|
|
68
87
|
instancesPreviousData: Float32Array;
|
|
88
|
+
/** @internal */
|
|
69
89
|
previousBatch: Nullable<_InstancesBatch>;
|
|
90
|
+
/** @internal */
|
|
70
91
|
previousRenderId: number;
|
|
71
92
|
}
|
|
72
93
|
/**
|
|
73
94
|
* @internal
|
|
74
95
|
**/
|
|
75
96
|
declare class _InstanceDataStorage {
|
|
97
|
+
/** @internal */
|
|
76
98
|
renderPasses: {
|
|
77
99
|
[id: number]: _InstanceDataStorageRenderPass;
|
|
78
100
|
};
|
|
101
|
+
/** @internal */
|
|
102
|
+
dataStorageRenderPass: _InstanceDataStorageRenderPass;
|
|
103
|
+
/** @internal */
|
|
104
|
+
useMonoDataStorageRenderPass: boolean;
|
|
105
|
+
/** @internal */
|
|
79
106
|
overridenInstanceCount: number;
|
|
107
|
+
/** @internal */
|
|
80
108
|
isFrozen: boolean;
|
|
109
|
+
/** @internal */
|
|
81
110
|
forceMatrixUpdates: boolean;
|
|
111
|
+
/** @internal */
|
|
82
112
|
hardwareInstancedRendering: boolean;
|
|
113
|
+
/** @internal */
|
|
83
114
|
manualUpdate: boolean;
|
|
115
|
+
/** @internal */
|
|
84
116
|
previousManualUpdate: boolean;
|
|
117
|
+
/** @internal */
|
|
85
118
|
masterMeshPreviousWorldMatrix: Nullable<Matrix>;
|
|
119
|
+
/** @internal */
|
|
86
120
|
engine: AbstractEngine;
|
|
87
121
|
}
|
|
88
122
|
/**
|
|
@@ -90,24 +124,38 @@ declare class _InstanceDataStorage {
|
|
|
90
124
|
**/
|
|
91
125
|
export declare class _InstancesBatch {
|
|
92
126
|
parent: _InstanceDataStorageRenderPass;
|
|
127
|
+
/** @internal */
|
|
93
128
|
mustReturn: boolean;
|
|
129
|
+
/** @internal */
|
|
94
130
|
visibleInstances: Nullable<InstancedMesh[]>[];
|
|
131
|
+
/** @internal */
|
|
95
132
|
renderSelf: boolean[];
|
|
133
|
+
/** @internal */
|
|
96
134
|
hardwareInstancedRendering: boolean[];
|
|
135
|
+
/** @internal */
|
|
97
136
|
constructor(parent: _InstanceDataStorageRenderPass);
|
|
98
137
|
}
|
|
99
138
|
/**
|
|
100
139
|
* @internal
|
|
101
140
|
**/
|
|
102
141
|
declare class _ThinInstanceDataStorage {
|
|
142
|
+
/** @internal */
|
|
103
143
|
instancesCount: number;
|
|
144
|
+
/** @internal */
|
|
104
145
|
matrixBuffer: Nullable<Buffer>;
|
|
146
|
+
/** @internal */
|
|
105
147
|
previousMatrixBuffer: Nullable<Buffer>;
|
|
148
|
+
/** @internal */
|
|
106
149
|
matrixBufferSize: number;
|
|
150
|
+
/** @internal */
|
|
107
151
|
matrixData: Nullable<Float32Array>;
|
|
152
|
+
/** @internal */
|
|
108
153
|
previousMatrixData: Nullable<Float32Array>;
|
|
154
|
+
/** @internal */
|
|
109
155
|
boundingVectors: Array<Vector3>;
|
|
156
|
+
/** @internal */
|
|
110
157
|
worldMatrices: Nullable<Matrix[]>;
|
|
158
|
+
/** @internal */
|
|
111
159
|
masterMeshPreviousWorldMatrix: Nullable<Matrix>;
|
|
112
160
|
}
|
|
113
161
|
/**
|
|
@@ -236,7 +284,9 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
236
284
|
* Observers added to this observable will be removed once triggered
|
|
237
285
|
*/
|
|
238
286
|
onMeshReadyObservable: Observable<Mesh>;
|
|
287
|
+
/** {@inheritDoc} */
|
|
239
288
|
get computeBonesUsingShaders(): boolean;
|
|
289
|
+
/** {@inheritDoc} */
|
|
240
290
|
set computeBonesUsingShaders(value: boolean);
|
|
241
291
|
/**
|
|
242
292
|
* An event triggered before rendering the mesh
|
|
@@ -263,7 +313,9 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
263
313
|
* Sets a callback to call before drawing the mesh. It is recommended to use onBeforeDrawObservable instead
|
|
264
314
|
*/
|
|
265
315
|
set onBeforeDraw(callback: () => void);
|
|
316
|
+
/** {@inheritDoc} */
|
|
266
317
|
get hasInstances(): boolean;
|
|
318
|
+
/** {@inheritDoc} */
|
|
267
319
|
get hasThinInstances(): boolean;
|
|
268
320
|
/**
|
|
269
321
|
* Gets the delay loading state of the mesh (when delay loading is turned on)
|
|
@@ -331,7 +383,9 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
331
383
|
*/
|
|
332
384
|
get overrideRenderingFillMode(): Nullable<number>;
|
|
333
385
|
set overrideRenderingFillMode(fillMode: Nullable<number>);
|
|
386
|
+
/** {@inheritDoc} */
|
|
334
387
|
get material(): Nullable<Material>;
|
|
388
|
+
/** {@inheritDoc} */
|
|
335
389
|
set material(value: Nullable<Material>);
|
|
336
390
|
/**
|
|
337
391
|
* Gets or sets a boolean indicating whether to render ignoring the active camera's max z setting. (false by default)
|
|
@@ -391,6 +445,13 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
391
445
|
* @param clonePhysicsImpostor When cloning, include cloning mesh physics impostor, default True.
|
|
392
446
|
*/
|
|
393
447
|
constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<Mesh>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean);
|
|
448
|
+
/**
|
|
449
|
+
* Instantiate (when possible) or clone that node with its hierarchy
|
|
450
|
+
* @param newParent defines the new parent to use for the instance (or clone)
|
|
451
|
+
* @param options defines options to configure how copy is done
|
|
452
|
+
* @param onNewNodeCreated defines an option callback to call when a clone or an instance is created
|
|
453
|
+
* @returns an instance (or a clone) of the current node with its hierarchy
|
|
454
|
+
*/
|
|
394
455
|
instantiateHierarchy(newParent?: Nullable<TransformNode>, options?: {
|
|
395
456
|
doNotInstantiate: boolean | ((node: TransformNode) => boolean);
|
|
396
457
|
}, onNewNodeCreated?: (source: TransformNode, clone: TransformNode) => void): Nullable<TransformNode>;
|
|
@@ -482,9 +543,33 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
482
543
|
* @returns a FloatArray or null if the mesh has no geometry or no vertex buffer for this kind.
|
|
483
544
|
*/
|
|
484
545
|
getVerticesData(kind: string, copyWhenShared?: boolean, forceCopy?: boolean, bypassInstanceData?: boolean): Nullable<FloatArray>;
|
|
546
|
+
/**
|
|
547
|
+
* Copies the requested vertex data kind into the given vertex data map. Float data is constructed if the map doesn't have the data.
|
|
548
|
+
* @param kind defines the vertex data kind to use
|
|
549
|
+
* @param vertexData defines the map that stores the resulting data
|
|
550
|
+
*/
|
|
485
551
|
copyVerticesData(kind: string, vertexData: {
|
|
486
552
|
[kind: string]: Float32Array;
|
|
487
553
|
}): void;
|
|
554
|
+
/**
|
|
555
|
+
* Returns the mesh VertexBuffer object from the requested `kind`
|
|
556
|
+
* @param kind defines which buffer to read from (positions, indices, normals, etc). Possible `kind` values :
|
|
557
|
+
* - VertexBuffer.PositionKind
|
|
558
|
+
* - VertexBuffer.NormalKind
|
|
559
|
+
* - VertexBuffer.UVKind
|
|
560
|
+
* - VertexBuffer.UV2Kind
|
|
561
|
+
* - VertexBuffer.UV3Kind
|
|
562
|
+
* - VertexBuffer.UV4Kind
|
|
563
|
+
* - VertexBuffer.UV5Kind
|
|
564
|
+
* - VertexBuffer.UV6Kind
|
|
565
|
+
* - VertexBuffer.ColorKind
|
|
566
|
+
* - VertexBuffer.MatricesIndicesKind
|
|
567
|
+
* - VertexBuffer.MatricesIndicesExtraKind
|
|
568
|
+
* - VertexBuffer.MatricesWeightsKind
|
|
569
|
+
* - VertexBuffer.MatricesWeightsExtraKind
|
|
570
|
+
* @param bypassInstanceData defines a boolean indicating that the function should not take into account the instance data (applies only if the mesh has instances). Default: false
|
|
571
|
+
* @returns a FloatArray or null if the mesh has no vertex buffer for this kind.
|
|
572
|
+
*/
|
|
488
573
|
getVertexBuffer(kind: string, bypassInstanceData?: boolean): Nullable<VertexBuffer>;
|
|
489
574
|
/**
|
|
490
575
|
* Tests if a specific vertex buffer is associated with this mesh
|
|
@@ -543,6 +628,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
543
628
|
* @returns the indices array or an empty array if the mesh has no geometry
|
|
544
629
|
*/
|
|
545
630
|
getIndices(copyWhenShared?: boolean, forceCopy?: boolean): Nullable<IndicesArray>;
|
|
631
|
+
/** {@inheritDoc} */
|
|
546
632
|
get isBlocked(): boolean;
|
|
547
633
|
/**
|
|
548
634
|
* Determine if the current mesh is ready to be rendered
|
|
@@ -790,6 +876,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
790
876
|
* @internal
|
|
791
877
|
*/
|
|
792
878
|
_processRendering(renderingMesh: AbstractMesh, subMesh: SubMesh, effect: Effect, fillMode: number, batch: _InstancesBatch, hardwareInstancedRendering: boolean, onBeforeDraw: (isInstance: boolean, world: Matrix, effectiveMaterial?: Material) => void, effectiveMaterial?: Material): Mesh;
|
|
879
|
+
private _disposeInstanceDataStorageRenderPass;
|
|
793
880
|
/**
|
|
794
881
|
* @internal
|
|
795
882
|
*/
|
|
@@ -1085,7 +1172,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1085
1172
|
* Merge the array of meshes into a single mesh for performance reasons.
|
|
1086
1173
|
* @param meshes array of meshes with the vertices to merge. Entries cannot be empty meshes.
|
|
1087
1174
|
* @param disposeSource when true (default), dispose of the vertices from the source meshes.
|
|
1088
|
-
* @param allow32BitsIndices when the sum of the vertices
|
|
1175
|
+
* @param allow32BitsIndices when the sum of the vertices \> 64k, this must be set to true.
|
|
1089
1176
|
* @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
|
|
1090
1177
|
* @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
|
|
1091
1178
|
* @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
|
|
@@ -1096,7 +1183,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1096
1183
|
* Merge the array of meshes into a single mesh for performance reasons.
|
|
1097
1184
|
* @param meshes array of meshes with the vertices to merge. Entries cannot be empty meshes.
|
|
1098
1185
|
* @param disposeSource when true (default), dispose of the vertices from the source meshes.
|
|
1099
|
-
* @param allow32BitsIndices when the sum of the vertices
|
|
1186
|
+
* @param allow32BitsIndices when the sum of the vertices \> 64k, this must be set to true.
|
|
1100
1187
|
* @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
|
|
1101
1188
|
* @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
|
|
1102
1189
|
* @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
|
|
@@ -1126,133 +1213,133 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1126
1213
|
/**
|
|
1127
1214
|
* Creates a ribbon mesh.
|
|
1128
1215
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
1129
|
-
* @param
|
|
1130
|
-
* @param
|
|
1131
|
-
* @param
|
|
1132
|
-
* @param
|
|
1133
|
-
* @param
|
|
1134
|
-
* @param
|
|
1135
|
-
* @param
|
|
1136
|
-
* @param
|
|
1137
|
-
* @param
|
|
1216
|
+
* @param _name defines the name of the mesh to create
|
|
1217
|
+
* @param _pathArray is a required array of paths, what are each an array of successive Vector3. The pathArray parameter depicts the ribbon geometry.
|
|
1218
|
+
* @param _closeArray creates a seam between the first and the last paths of the path array (default is false)
|
|
1219
|
+
* @param _closePath creates a seam between the first and the last points of each path of the path array
|
|
1220
|
+
* @param _offset is taken in account only if the `pathArray` is containing a single path
|
|
1221
|
+
* @param _scene defines the hosting scene
|
|
1222
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1223
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1224
|
+
* @param _instance defines an instance of an existing Ribbon object to be updated with the passed `pathArray` parameter (https://doc.babylonjs.com/how_to/How_to_dynamically_morph_a_mesh#ribbon)
|
|
1138
1225
|
* @returns a new Mesh
|
|
1139
1226
|
* @deprecated Please use MeshBuilder instead
|
|
1140
1227
|
*/
|
|
1141
|
-
static CreateRibbon(
|
|
1228
|
+
static CreateRibbon(_name: string, _pathArray: Vector3[][], _closeArray: boolean, _closePath: boolean, _offset: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
1142
1229
|
/**
|
|
1143
1230
|
* Creates a plane polygonal mesh. By default, this is a disc.
|
|
1144
|
-
* @param
|
|
1145
|
-
* @param
|
|
1146
|
-
* @param
|
|
1147
|
-
* @param
|
|
1148
|
-
* @param
|
|
1149
|
-
* @param
|
|
1231
|
+
* @param _name defines the name of the mesh to create
|
|
1232
|
+
* @param _radius sets the radius size (float) of the polygon (default 0.5)
|
|
1233
|
+
* @param _tessellation sets the number of polygon sides (positive integer, default 64). So a tessellation valued to 3 will build a triangle, to 4 a square, etc
|
|
1234
|
+
* @param _scene defines the hosting scene
|
|
1235
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1236
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1150
1237
|
* @returns a new Mesh
|
|
1151
1238
|
* @deprecated Please use MeshBuilder instead
|
|
1152
1239
|
*/
|
|
1153
|
-
static CreateDisc(
|
|
1240
|
+
static CreateDisc(_name: string, _radius: number, _tessellation: number, _scene: Nullable<Scene>, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1154
1241
|
/**
|
|
1155
1242
|
* Creates a box mesh.
|
|
1156
|
-
* @param
|
|
1157
|
-
* @param
|
|
1158
|
-
* @param
|
|
1159
|
-
* @param
|
|
1160
|
-
* @param
|
|
1243
|
+
* @param _name defines the name of the mesh to create
|
|
1244
|
+
* @param _size sets the size (float) of each box side (default 1)
|
|
1245
|
+
* @param _scene defines the hosting scene
|
|
1246
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1247
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1161
1248
|
* @returns a new Mesh
|
|
1162
1249
|
* @deprecated Please use MeshBuilder instead
|
|
1163
1250
|
*/
|
|
1164
|
-
static CreateBox(
|
|
1251
|
+
static CreateBox(_name: string, _size: number, _scene: Nullable<Scene>, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1165
1252
|
/**
|
|
1166
1253
|
* Creates a sphere mesh.
|
|
1167
|
-
* @param
|
|
1168
|
-
* @param
|
|
1169
|
-
* @param
|
|
1170
|
-
* @param
|
|
1171
|
-
* @param
|
|
1172
|
-
* @param
|
|
1254
|
+
* @param _name defines the name of the mesh to create
|
|
1255
|
+
* @param _segments sets the sphere number of horizontal stripes (positive integer, default 32)
|
|
1256
|
+
* @param _diameter sets the diameter size (float) of the sphere (default 1)
|
|
1257
|
+
* @param _scene defines the hosting scene
|
|
1258
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1259
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1173
1260
|
* @returns a new Mesh
|
|
1174
1261
|
* @deprecated Please use MeshBuilder instead
|
|
1175
1262
|
*/
|
|
1176
|
-
static CreateSphere(
|
|
1263
|
+
static CreateSphere(_name: string, _segments: number, _diameter: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1177
1264
|
/**
|
|
1178
1265
|
* Creates a hemisphere mesh.
|
|
1179
|
-
* @param
|
|
1180
|
-
* @param
|
|
1181
|
-
* @param
|
|
1182
|
-
* @param
|
|
1266
|
+
* @param _name defines the name of the mesh to create
|
|
1267
|
+
* @param _segments sets the sphere number of horizontal stripes (positive integer, default 32)
|
|
1268
|
+
* @param _diameter sets the diameter size (float) of the sphere (default 1)
|
|
1269
|
+
* @param _scene defines the hosting scene
|
|
1183
1270
|
* @returns a new Mesh
|
|
1184
1271
|
* @deprecated Please use MeshBuilder instead
|
|
1185
1272
|
*/
|
|
1186
|
-
static CreateHemisphere(
|
|
1273
|
+
static CreateHemisphere(_name: string, _segments: number, _diameter: number, _scene?: Scene): Mesh;
|
|
1187
1274
|
/**
|
|
1188
1275
|
* Creates a cylinder or a cone mesh.
|
|
1189
|
-
* @param
|
|
1190
|
-
* @param
|
|
1191
|
-
* @param
|
|
1192
|
-
* @param
|
|
1193
|
-
* @param
|
|
1194
|
-
* @param
|
|
1195
|
-
* @param
|
|
1196
|
-
* @param
|
|
1197
|
-
* @param
|
|
1276
|
+
* @param _name defines the name of the mesh to create
|
|
1277
|
+
* @param _height sets the height size (float) of the cylinder/cone (float, default 2)
|
|
1278
|
+
* @param _diameterTop set the top cap diameter (floats, default 1)
|
|
1279
|
+
* @param _diameterBottom set the bottom cap diameter (floats, default 1). This value can't be zero
|
|
1280
|
+
* @param _tessellation sets the number of cylinder sides (positive integer, default 24). Set it to 3 to get a prism for instance
|
|
1281
|
+
* @param _subdivisions sets the number of rings along the cylinder height (positive integer, default 1)
|
|
1282
|
+
* @param _scene defines the hosting scene
|
|
1283
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1284
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1198
1285
|
* @returns a new Mesh
|
|
1199
1286
|
* @deprecated Please use MeshBuilder instead
|
|
1200
1287
|
*/
|
|
1201
|
-
static CreateCylinder(
|
|
1288
|
+
static CreateCylinder(_name: string, _height: number, _diameterTop: number, _diameterBottom: number, _tessellation: number, _subdivisions: any, _scene?: Scene, _updatable?: any, _sideOrientation?: number): Mesh;
|
|
1202
1289
|
/**
|
|
1203
1290
|
* Creates a torus mesh.
|
|
1204
|
-
* @param
|
|
1205
|
-
* @param
|
|
1206
|
-
* @param
|
|
1207
|
-
* @param
|
|
1208
|
-
* @param
|
|
1209
|
-
* @param
|
|
1210
|
-
* @param
|
|
1291
|
+
* @param _name defines the name of the mesh to create
|
|
1292
|
+
* @param _diameter sets the diameter size (float) of the torus (default 1)
|
|
1293
|
+
* @param _thickness sets the diameter size of the tube of the torus (float, default 0.5)
|
|
1294
|
+
* @param _tessellation sets the number of torus sides (positive integer, default 16)
|
|
1295
|
+
* @param _scene defines the hosting scene
|
|
1296
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1297
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1211
1298
|
* @returns a new Mesh
|
|
1212
1299
|
* @deprecated Please use MeshBuilder instead
|
|
1213
1300
|
*/
|
|
1214
|
-
static CreateTorus(
|
|
1301
|
+
static CreateTorus(_name: string, _diameter: number, _thickness: number, _tessellation: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1215
1302
|
/**
|
|
1216
1303
|
* Creates a torus knot mesh.
|
|
1217
|
-
* @param
|
|
1218
|
-
* @param
|
|
1219
|
-
* @param
|
|
1220
|
-
* @param
|
|
1221
|
-
* @param
|
|
1222
|
-
* @param
|
|
1223
|
-
* @param
|
|
1224
|
-
* @param
|
|
1225
|
-
* @param
|
|
1226
|
-
* @param
|
|
1304
|
+
* @param _name defines the name of the mesh to create
|
|
1305
|
+
* @param _radius sets the global radius size (float) of the torus knot (default 2)
|
|
1306
|
+
* @param _tube sets the diameter size of the tube of the torus (float, default 0.5)
|
|
1307
|
+
* @param _radialSegments sets the number of sides on each tube segments (positive integer, default 32)
|
|
1308
|
+
* @param _tubularSegments sets the number of tubes to decompose the knot into (positive integer, default 32)
|
|
1309
|
+
* @param _p the number of windings on X axis (positive integers, default 2)
|
|
1310
|
+
* @param _q the number of windings on Y axis (positive integers, default 3)
|
|
1311
|
+
* @param _scene defines the hosting scene
|
|
1312
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1313
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1227
1314
|
* @returns a new Mesh
|
|
1228
1315
|
* @deprecated Please use MeshBuilder instead
|
|
1229
1316
|
*/
|
|
1230
|
-
static CreateTorusKnot(
|
|
1317
|
+
static CreateTorusKnot(_name: string, _radius: number, _tube: number, _radialSegments: number, _tubularSegments: number, _p: number, _q: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1231
1318
|
/**
|
|
1232
1319
|
* Creates a line mesh..
|
|
1233
|
-
* @param
|
|
1234
|
-
* @param
|
|
1235
|
-
* @param
|
|
1236
|
-
* @param
|
|
1237
|
-
* @param
|
|
1320
|
+
* @param _name defines the name of the mesh to create
|
|
1321
|
+
* @param _points is an array successive Vector3
|
|
1322
|
+
* @param _scene defines the hosting scene
|
|
1323
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1324
|
+
* @param _instance is an instance of an existing LineMesh object to be updated with the passed `points` parameter (https://doc.babylonjs.com/how_to/How_to_dynamically_morph_a_mesh#lines-and-dashedlines).
|
|
1238
1325
|
* @returns a new Mesh
|
|
1239
1326
|
* @deprecated Please use MeshBuilder instead
|
|
1240
1327
|
*/
|
|
1241
|
-
static CreateLines(
|
|
1328
|
+
static CreateLines(_name: string, _points: Vector3[], _scene: Nullable<Scene>, _updatable: boolean, _instance?: Nullable<LinesMesh>): LinesMesh;
|
|
1242
1329
|
/**
|
|
1243
1330
|
* Creates a dashed line mesh.
|
|
1244
|
-
* @param
|
|
1245
|
-
* @param
|
|
1246
|
-
* @param
|
|
1247
|
-
* @param
|
|
1248
|
-
* @param
|
|
1249
|
-
* @param
|
|
1250
|
-
* @param
|
|
1251
|
-
* @param
|
|
1331
|
+
* @param _name defines the name of the mesh to create
|
|
1332
|
+
* @param _points is an array successive Vector3
|
|
1333
|
+
* @param _dashSize is the size of the dashes relatively the dash number (positive float, default 3)
|
|
1334
|
+
* @param _gapSize is the size of the gap between two successive dashes relatively the dash number (positive float, default 1)
|
|
1335
|
+
* @param _dashNb is the intended total number of dashes (positive integer, default 200)
|
|
1336
|
+
* @param _scene defines the hosting scene
|
|
1337
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1338
|
+
* @param _instance is an instance of an existing LineMesh object to be updated with the passed `points` parameter (https://doc.babylonjs.com/how_to/How_to_dynamically_morph_a_mesh#lines-and-dashedlines)
|
|
1252
1339
|
* @returns a new Mesh
|
|
1253
1340
|
* @deprecated Please use MeshBuilder instead
|
|
1254
1341
|
*/
|
|
1255
|
-
static CreateDashedLines(
|
|
1342
|
+
static CreateDashedLines(_name: string, _points: Vector3[], _dashSize: number, _gapSize: number, _dashNb: number, _scene: Nullable<Scene>, _updatable?: boolean, _instance?: LinesMesh): LinesMesh;
|
|
1256
1343
|
/**
|
|
1257
1344
|
* Creates a polygon mesh.Please consider using the same method from the MeshBuilder class instead
|
|
1258
1345
|
* The polygon's shape will depend on the input parameters and is constructed parallel to a ground mesh.
|
|
@@ -1261,175 +1348,175 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1261
1348
|
* The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created.
|
|
1262
1349
|
* Remember you can only change the shape positions, not their number when updating a polygon.
|
|
1263
1350
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#non-regular-polygon
|
|
1264
|
-
* @param
|
|
1265
|
-
* @param
|
|
1266
|
-
* @param
|
|
1267
|
-
* @param
|
|
1268
|
-
* @param
|
|
1269
|
-
* @param
|
|
1270
|
-
* @param
|
|
1351
|
+
* @param _name defines the name of the mesh to create
|
|
1352
|
+
* @param _shape is a required array of successive Vector3 representing the corners of the polygon in th XoZ plane, that is y = 0 for all vectors
|
|
1353
|
+
* @param _scene defines the hosting scene
|
|
1354
|
+
* @param _holes is a required array of arrays of successive Vector3 used to defines holes in the polygon
|
|
1355
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1356
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1357
|
+
* @param _earcutInjection can be used to inject your own earcut reference
|
|
1271
1358
|
* @returns a new Mesh
|
|
1272
1359
|
* @deprecated Please use MeshBuilder instead
|
|
1273
1360
|
*/
|
|
1274
|
-
static CreatePolygon(
|
|
1361
|
+
static CreatePolygon(_name: string, _shape: Vector3[], _scene: Scene, _holes?: Vector3[][], _updatable?: boolean, _sideOrientation?: number, _earcutInjection?: any): Mesh;
|
|
1275
1362
|
/**
|
|
1276
1363
|
* Creates an extruded polygon mesh, with depth in the Y direction..
|
|
1277
1364
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-non-regular-polygon
|
|
1278
|
-
* @param
|
|
1279
|
-
* @param
|
|
1280
|
-
* @param
|
|
1281
|
-
* @param
|
|
1282
|
-
* @param
|
|
1283
|
-
* @param
|
|
1284
|
-
* @param
|
|
1285
|
-
* @param
|
|
1365
|
+
* @param _name defines the name of the mesh to create
|
|
1366
|
+
* @param _shape is a required array of successive Vector3 representing the corners of the polygon in th XoZ plane, that is y = 0 for all vectors
|
|
1367
|
+
* @param _depth defines the height of extrusion
|
|
1368
|
+
* @param _scene defines the hosting scene
|
|
1369
|
+
* @param _holes is a required array of arrays of successive Vector3 used to defines holes in the polygon
|
|
1370
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1371
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1372
|
+
* @param _earcutInjection can be used to inject your own earcut reference
|
|
1286
1373
|
* @returns a new Mesh
|
|
1287
1374
|
* @deprecated Please use MeshBuilder instead
|
|
1288
1375
|
*/
|
|
1289
|
-
static ExtrudePolygon(
|
|
1376
|
+
static ExtrudePolygon(_name: string, _shape: Vector3[], _depth: number, _scene: Scene, _holes?: Vector3[][], _updatable?: boolean, _sideOrientation?: number, _earcutInjection?: any): Mesh;
|
|
1290
1377
|
/**
|
|
1291
1378
|
* Creates an extruded shape mesh.
|
|
1292
1379
|
* The extrusion is a parametric shape. It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1293
1380
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
1294
1381
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-shapes
|
|
1295
|
-
* @param
|
|
1296
|
-
* @param
|
|
1297
|
-
* @param
|
|
1298
|
-
* @param
|
|
1299
|
-
* @param
|
|
1300
|
-
* @param
|
|
1301
|
-
* @param
|
|
1302
|
-
* @param
|
|
1303
|
-
* @param
|
|
1304
|
-
* @param
|
|
1382
|
+
* @param _name defines the name of the mesh to create
|
|
1383
|
+
* @param _shape is a required array of successive Vector3. This array depicts the shape to be extruded in its local space : the shape must be designed in the xOy plane and will be extruded along the Z axis
|
|
1384
|
+
* @param _path is a required array of successive Vector3. This is the axis curve the shape is extruded along
|
|
1385
|
+
* @param _scale is the value to scale the shape
|
|
1386
|
+
* @param _rotation is the angle value to rotate the shape each step (each path point), from the former step (so rotation added each step) along the curve
|
|
1387
|
+
* @param _cap sets the way the extruded shape is capped. Possible values : Mesh.NO_CAP (default), Mesh.CAP_START, Mesh.CAP_END, Mesh.CAP_ALL
|
|
1388
|
+
* @param _scene defines the hosting scene
|
|
1389
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1390
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1391
|
+
* @param _instance is an instance of an existing ExtrudedShape object to be updated with the passed `shape`, `path`, `scale` or `rotation` parameters (https://doc.babylonjs.com/how_to/How_to_dynamically_morph_a_mesh#extruded-shape)
|
|
1305
1392
|
* @returns a new Mesh
|
|
1306
1393
|
* @deprecated Please use MeshBuilder instead
|
|
1307
1394
|
*/
|
|
1308
|
-
static ExtrudeShape(
|
|
1395
|
+
static ExtrudeShape(_name: string, _shape: Vector3[], _path: Vector3[], _scale: number, _rotation: number, _cap: number, _scene: Nullable<Scene>, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
1309
1396
|
/**
|
|
1310
1397
|
* Creates an custom extruded shape mesh.
|
|
1311
1398
|
* The custom extrusion is a parametric shape.
|
|
1312
1399
|
* It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1313
1400
|
*
|
|
1314
1401
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-shapes
|
|
1315
|
-
* @param
|
|
1316
|
-
* @param
|
|
1317
|
-
* @param
|
|
1318
|
-
* @param
|
|
1319
|
-
* @param
|
|
1320
|
-
* @param
|
|
1321
|
-
* @param
|
|
1322
|
-
* @param
|
|
1323
|
-
* @param
|
|
1324
|
-
* @param
|
|
1325
|
-
* @param
|
|
1326
|
-
* @param
|
|
1402
|
+
* @param _name defines the name of the mesh to create
|
|
1403
|
+
* @param _shape is a required array of successive Vector3. This array depicts the shape to be extruded in its local space : the shape must be designed in the xOy plane and will be extruded along the Z axis
|
|
1404
|
+
* @param _path is a required array of successive Vector3. This is the axis curve the shape is extruded along
|
|
1405
|
+
* @param _scaleFunction is a custom Javascript function called on each path point
|
|
1406
|
+
* @param _rotationFunction is a custom Javascript function called on each path point
|
|
1407
|
+
* @param _ribbonCloseArray forces the extrusion underlying ribbon to close all the paths in its `pathArray`
|
|
1408
|
+
* @param _ribbonClosePath forces the extrusion underlying ribbon to close its `pathArray`
|
|
1409
|
+
* @param _cap sets the way the extruded shape is capped. Possible values : Mesh.NO_CAP (default), Mesh.CAP_START, Mesh.CAP_END, Mesh.CAP_ALL
|
|
1410
|
+
* @param _scene defines the hosting scene
|
|
1411
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1412
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1413
|
+
* @param _instance is an instance of an existing ExtrudedShape object to be updated with the passed `shape`, `path`, `scale` or `rotation` parameters (https://doc.babylonjs.com/features/featuresDeepDive/mesh/dynamicMeshMorph#extruded-shape)
|
|
1327
1414
|
* @returns a new Mesh
|
|
1328
1415
|
* @deprecated Please use MeshBuilder instead
|
|
1329
1416
|
*/
|
|
1330
|
-
static ExtrudeShapeCustom(
|
|
1417
|
+
static ExtrudeShapeCustom(_name: string, _shape: Vector3[], _path: Vector3[], _scaleFunction: Nullable<{
|
|
1331
1418
|
(i: number, distance: number): number;
|
|
1332
|
-
}>,
|
|
1419
|
+
}>, _rotationFunction: Nullable<{
|
|
1333
1420
|
(i: number, distance: number): number;
|
|
1334
|
-
}>,
|
|
1421
|
+
}>, _ribbonCloseArray: boolean, _ribbonClosePath: boolean, _cap: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
1335
1422
|
/**
|
|
1336
1423
|
* Creates lathe mesh.
|
|
1337
1424
|
* The lathe is a shape with a symmetry axis : a 2D model shape is rotated around this axis to design the lathe.
|
|
1338
|
-
* @param
|
|
1339
|
-
* @param
|
|
1340
|
-
* @param
|
|
1341
|
-
* @param
|
|
1342
|
-
* @param
|
|
1343
|
-
* @param
|
|
1344
|
-
* @param
|
|
1425
|
+
* @param _name defines the name of the mesh to create
|
|
1426
|
+
* @param _shape is a required array of successive Vector3. This array depicts the shape to be rotated in its local space : the shape must be designed in the xOy plane and will be rotated around the Y axis. It's usually a 2D shape, so the Vector3 z coordinates are often set to zero
|
|
1427
|
+
* @param _radius is the radius value of the lathe
|
|
1428
|
+
* @param _tessellation is the side number of the lathe.
|
|
1429
|
+
* @param _scene defines the hosting scene
|
|
1430
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1431
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1345
1432
|
* @returns a new Mesh
|
|
1346
1433
|
* @deprecated Please use MeshBuilder instead
|
|
1347
1434
|
*/
|
|
1348
|
-
static CreateLathe(
|
|
1435
|
+
static CreateLathe(_name: string, _shape: Vector3[], _radius: number, _tessellation: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1349
1436
|
/**
|
|
1350
1437
|
* Creates a plane mesh.
|
|
1351
|
-
* @param
|
|
1352
|
-
* @param
|
|
1353
|
-
* @param
|
|
1354
|
-
* @param
|
|
1355
|
-
* @param
|
|
1438
|
+
* @param _name defines the name of the mesh to create
|
|
1439
|
+
* @param _size sets the size (float) of both sides of the plane at once (default 1)
|
|
1440
|
+
* @param _scene defines the hosting scene
|
|
1441
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1442
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1356
1443
|
* @returns a new Mesh
|
|
1357
1444
|
* @deprecated Please use MeshBuilder instead
|
|
1358
1445
|
*/
|
|
1359
|
-
static CreatePlane(
|
|
1446
|
+
static CreatePlane(_name: string, _size: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1360
1447
|
/**
|
|
1361
1448
|
* Creates a ground mesh.
|
|
1362
|
-
* @param
|
|
1363
|
-
* @param
|
|
1364
|
-
* @param
|
|
1365
|
-
* @param
|
|
1366
|
-
* @param
|
|
1367
|
-
* @param
|
|
1449
|
+
* @param _name defines the name of the mesh to create
|
|
1450
|
+
* @param _width set the width of the ground
|
|
1451
|
+
* @param _height set the height of the ground
|
|
1452
|
+
* @param _subdivisions sets the number of subdivisions per side
|
|
1453
|
+
* @param _scene defines the hosting scene
|
|
1454
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1368
1455
|
* @returns a new Mesh
|
|
1369
1456
|
* @deprecated Please use MeshBuilder instead
|
|
1370
1457
|
*/
|
|
1371
|
-
static CreateGround(
|
|
1458
|
+
static CreateGround(_name: string, _width: number, _height: number, _subdivisions: number, _scene?: Scene, _updatable?: boolean): Mesh;
|
|
1372
1459
|
/**
|
|
1373
1460
|
* Creates a tiled ground mesh.
|
|
1374
|
-
* @param
|
|
1375
|
-
* @param
|
|
1376
|
-
* @param
|
|
1377
|
-
* @param
|
|
1378
|
-
* @param
|
|
1379
|
-
* @param
|
|
1380
|
-
* @param
|
|
1381
|
-
* @param
|
|
1382
|
-
* @param
|
|
1461
|
+
* @param _name defines the name of the mesh to create
|
|
1462
|
+
* @param _xmin set the ground minimum X coordinate
|
|
1463
|
+
* @param _zmin set the ground minimum Y coordinate
|
|
1464
|
+
* @param _xmax set the ground maximum X coordinate
|
|
1465
|
+
* @param _zmax set the ground maximum Z coordinate
|
|
1466
|
+
* @param _subdivisions is an object `{w: positive integer, h: positive integer}` (default `{w: 6, h: 6}`). `w` and `h` are the numbers of subdivisions on the ground width and height. Each subdivision is called a tile
|
|
1467
|
+
* @param _precision is an object `{w: positive integer, h: positive integer}` (default `{w: 2, h: 2}`). `w` and `h` are the numbers of subdivisions on the ground width and height of each tile
|
|
1468
|
+
* @param _scene defines the hosting scene
|
|
1469
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1383
1470
|
* @returns a new Mesh
|
|
1384
1471
|
* @deprecated Please use MeshBuilder instead
|
|
1385
1472
|
*/
|
|
1386
|
-
static CreateTiledGround(
|
|
1473
|
+
static CreateTiledGround(_name: string, _xmin: number, _zmin: number, _xmax: number, _zmax: number, _subdivisions: {
|
|
1387
1474
|
w: number;
|
|
1388
1475
|
h: number;
|
|
1389
|
-
},
|
|
1476
|
+
}, _precision: {
|
|
1390
1477
|
w: number;
|
|
1391
1478
|
h: number;
|
|
1392
|
-
},
|
|
1479
|
+
}, _scene: Scene, _updatable?: boolean): Mesh;
|
|
1393
1480
|
/**
|
|
1394
1481
|
* Creates a ground mesh from a height map.
|
|
1395
1482
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set/height_map
|
|
1396
|
-
* @param
|
|
1397
|
-
* @param
|
|
1398
|
-
* @param
|
|
1399
|
-
* @param
|
|
1400
|
-
* @param
|
|
1401
|
-
* @param
|
|
1402
|
-
* @param
|
|
1403
|
-
* @param
|
|
1404
|
-
* @param
|
|
1405
|
-
* @param
|
|
1406
|
-
* @param
|
|
1483
|
+
* @param _name defines the name of the mesh to create
|
|
1484
|
+
* @param _url sets the URL of the height map image resource
|
|
1485
|
+
* @param _width set the ground width size
|
|
1486
|
+
* @param _height set the ground height size
|
|
1487
|
+
* @param _subdivisions sets the number of subdivision per side
|
|
1488
|
+
* @param _minHeight is the minimum altitude on the ground
|
|
1489
|
+
* @param _maxHeight is the maximum altitude on the ground
|
|
1490
|
+
* @param _scene defines the hosting scene
|
|
1491
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1492
|
+
* @param _onReady is a callback function that will be called once the mesh is built (the height map download can last some time)
|
|
1493
|
+
* @param _alphaFilter will filter any data where the alpha channel is below this value, defaults 0 (all data visible)
|
|
1407
1494
|
* @returns a new Mesh
|
|
1408
1495
|
* @deprecated Please use MeshBuilder instead
|
|
1409
1496
|
*/
|
|
1410
|
-
static CreateGroundFromHeightMap(
|
|
1497
|
+
static CreateGroundFromHeightMap(_name: string, _url: string, _width: number, _height: number, _subdivisions: number, _minHeight: number, _maxHeight: number, _scene: Scene, _updatable?: boolean, _onReady?: (mesh: GroundMesh) => void, _alphaFilter?: number): GroundMesh;
|
|
1411
1498
|
/**
|
|
1412
1499
|
* Creates a tube mesh.
|
|
1413
1500
|
* The tube is a parametric shape.
|
|
1414
1501
|
* It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1415
1502
|
*
|
|
1416
1503
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
1417
|
-
* @param
|
|
1418
|
-
* @param
|
|
1419
|
-
* @param
|
|
1420
|
-
* @param
|
|
1421
|
-
* @param
|
|
1422
|
-
* @param
|
|
1423
|
-
* @param
|
|
1424
|
-
* @param
|
|
1425
|
-
* @param
|
|
1426
|
-
* @param
|
|
1504
|
+
* @param _name defines the name of the mesh to create
|
|
1505
|
+
* @param _path is a required array of successive Vector3. It is the curve used as the axis of the tube
|
|
1506
|
+
* @param _radius sets the tube radius size
|
|
1507
|
+
* @param _tessellation is the number of sides on the tubular surface
|
|
1508
|
+
* @param _radiusFunction is a custom function. If it is not null, it overrides the parameter `radius`. This function is called on each point of the tube path and is passed the index `i` of the i-th point and the distance of this point from the first point of the path
|
|
1509
|
+
* @param _cap sets the way the extruded shape is capped. Possible values : Mesh.NO_CAP (default), Mesh.CAP_START, Mesh.CAP_END, Mesh.CAP_ALL
|
|
1510
|
+
* @param _scene defines the hosting scene
|
|
1511
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1512
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1513
|
+
* @param _instance is an instance of an existing Tube object to be updated with the passed `pathArray` parameter (https://doc.babylonjs.com/how_to/How_to_dynamically_morph_a_mesh#tube)
|
|
1427
1514
|
* @returns a new Mesh
|
|
1428
1515
|
* @deprecated Please use MeshBuilder instead
|
|
1429
1516
|
*/
|
|
1430
|
-
static CreateTube(
|
|
1517
|
+
static CreateTube(_name: string, _path: Vector3[], _radius: number, _tessellation: number, _radiusFunction: {
|
|
1431
1518
|
(i: number, distance: number): number;
|
|
1432
|
-
},
|
|
1519
|
+
}, _cap: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
1433
1520
|
/**
|
|
1434
1521
|
* Creates a polyhedron mesh.
|
|
1435
1522
|
*.
|
|
@@ -1444,13 +1531,13 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1444
1531
|
* * You can also set the mesh side orientation with the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
|
|
1445
1532
|
* * If you create a double-sided mesh, you can choose what parts of the texture image to crop and stick respectively on the front and the back sides with the parameters `frontUVs` and `backUVs` (Vector4). Detail here : https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation
|
|
1446
1533
|
* * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created
|
|
1447
|
-
* @param
|
|
1448
|
-
* @param
|
|
1449
|
-
* @param
|
|
1534
|
+
* @param _name defines the name of the mesh to create
|
|
1535
|
+
* @param _options defines the options used to create the mesh
|
|
1536
|
+
* @param _scene defines the hosting scene
|
|
1450
1537
|
* @returns a new Mesh
|
|
1451
1538
|
* @deprecated Please use MeshBuilder instead
|
|
1452
1539
|
*/
|
|
1453
|
-
static CreatePolyhedron(
|
|
1540
|
+
static CreatePolyhedron(_name: string, _options: {
|
|
1454
1541
|
type?: number;
|
|
1455
1542
|
size?: number;
|
|
1456
1543
|
sizeX?: number;
|
|
@@ -1461,7 +1548,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1461
1548
|
faceColors?: Color4[];
|
|
1462
1549
|
updatable?: boolean;
|
|
1463
1550
|
sideOrientation?: number;
|
|
1464
|
-
},
|
|
1551
|
+
}, _scene: Scene): Mesh;
|
|
1465
1552
|
/**
|
|
1466
1553
|
* Creates a sphere based upon an icosahedron with 20 triangular faces which can be subdivided
|
|
1467
1554
|
* * The parameter `radius` sets the radius size (float) of the icosphere (default 1)
|
|
@@ -1472,49 +1559,49 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1472
1559
|
* * If you create a double-sided mesh, you can choose what parts of the texture image to crop and stick respectively on the front and the back sides with the parameters `frontUVs` and `backUVs` (Vector4). Detail here : https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation
|
|
1473
1560
|
* * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created
|
|
1474
1561
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/polyhedra#icosphere
|
|
1475
|
-
* @param
|
|
1476
|
-
* @param
|
|
1477
|
-
* @param
|
|
1562
|
+
* @param _name defines the name of the mesh
|
|
1563
|
+
* @param _options defines the options used to create the mesh
|
|
1564
|
+
* @param _scene defines the hosting scene
|
|
1478
1565
|
* @returns a new Mesh
|
|
1479
1566
|
* @deprecated Please use MeshBuilder instead
|
|
1480
1567
|
*/
|
|
1481
|
-
static CreateIcoSphere(
|
|
1568
|
+
static CreateIcoSphere(_name: string, _options: {
|
|
1482
1569
|
radius?: number;
|
|
1483
1570
|
flat?: boolean;
|
|
1484
1571
|
subdivisions?: number;
|
|
1485
1572
|
sideOrientation?: number;
|
|
1486
1573
|
updatable?: boolean;
|
|
1487
|
-
},
|
|
1574
|
+
}, _scene: Scene): Mesh;
|
|
1488
1575
|
/**
|
|
1489
1576
|
* Creates a decal mesh.
|
|
1490
1577
|
*.
|
|
1491
1578
|
* A decal is a mesh usually applied as a model onto the surface of another mesh
|
|
1492
|
-
* @param
|
|
1493
|
-
* @param
|
|
1494
|
-
* @param
|
|
1495
|
-
* @param
|
|
1496
|
-
* @param
|
|
1497
|
-
* @param
|
|
1579
|
+
* @param _name defines the name of the mesh
|
|
1580
|
+
* @param _sourceMesh defines the mesh receiving the decal
|
|
1581
|
+
* @param _position sets the position of the decal in world coordinates
|
|
1582
|
+
* @param _normal sets the normal of the mesh where the decal is applied onto in world coordinates
|
|
1583
|
+
* @param _size sets the decal scaling
|
|
1584
|
+
* @param _angle sets the angle to rotate the decal
|
|
1498
1585
|
* @returns a new Mesh
|
|
1499
1586
|
* @deprecated Please use MeshBuilder instead
|
|
1500
1587
|
*/
|
|
1501
|
-
static CreateDecal(
|
|
1588
|
+
static CreateDecal(_name: string, _sourceMesh: AbstractMesh, _position: Vector3, _normal: Vector3, _size: Vector3, _angle: number): Mesh;
|
|
1502
1589
|
/** Creates a Capsule Mesh
|
|
1503
|
-
* @param
|
|
1504
|
-
* @param
|
|
1505
|
-
* @param
|
|
1590
|
+
* @param _name defines the name of the mesh.
|
|
1591
|
+
* @param _options the constructors options used to shape the mesh.
|
|
1592
|
+
* @param _scene defines the scene the mesh is scoped to.
|
|
1506
1593
|
* @returns the capsule mesh
|
|
1507
1594
|
* @see https://doc.babylonjs.com/how_to/capsule_shape
|
|
1508
1595
|
* @deprecated Please use MeshBuilder instead
|
|
1509
1596
|
*/
|
|
1510
|
-
static CreateCapsule(
|
|
1597
|
+
static CreateCapsule(_name: string, _options: ICreateCapsuleOptions, _scene: Scene): Mesh;
|
|
1511
1598
|
/**
|
|
1512
1599
|
* Extends a mesh to a Goldberg mesh
|
|
1513
1600
|
* Warning the mesh to convert MUST be an import of a perviously exported Goldberg mesh
|
|
1514
|
-
* @param
|
|
1601
|
+
* @param _mesh the mesh to convert
|
|
1515
1602
|
* @returns the extended mesh
|
|
1516
1603
|
* @deprecated Please use ExtendMeshToGoldberg instead
|
|
1517
1604
|
*/
|
|
1518
|
-
static ExtendToGoldberg(
|
|
1605
|
+
static ExtendToGoldberg(_mesh: Mesh): Mesh;
|
|
1519
1606
|
}
|
|
1520
1607
|
export {};
|