@onerjs/core 8.41.5 → 8.41.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +38 -10
- package/Cameras/geospatialCamera.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/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/Lights/Shadows/cascadedShadowGenerator.js +1 -1
- package/Lights/Shadows/cascadedShadowGenerator.js.map +1 -1
- package/Lights/Shadows/shadowGenerator.js +1 -1
- package/Lights/Shadows/shadowGenerator.js.map +1 -1
- package/Lights/lightingVolume.js +1 -1
- package/Lights/lightingVolume.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.js +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.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/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 +10 -3
- package/Meshes/instancedMesh.js.map +1 -1
- package/Meshes/mesh.d.ts +286 -204
- package/Meshes/mesh.js +251 -197
- 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/Physics/v2/Plugins/havokPlugin.d.ts +75 -2
- package/Physics/v2/Plugins/havokPlugin.js +243 -52
- package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
- package/Probes/reflectionProbe.js +1 -1
- package/Probes/reflectionProbe.js.map +1 -1
- package/Rendering/depthRenderer.js +1 -1
- package/Rendering/depthRenderer.js.map +1 -1
- package/package.json +1 -1
- package/scene.d.ts +0 -3
- package/scene.js +18 -5
- 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,50 @@ 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 */
|
|
79
102
|
overridenInstanceCount: number;
|
|
103
|
+
/** @internal */
|
|
80
104
|
isFrozen: boolean;
|
|
105
|
+
/** @internal */
|
|
81
106
|
forceMatrixUpdates: boolean;
|
|
107
|
+
/** @internal */
|
|
82
108
|
hardwareInstancedRendering: boolean;
|
|
109
|
+
/** @internal */
|
|
83
110
|
manualUpdate: boolean;
|
|
111
|
+
/** @internal */
|
|
84
112
|
previousManualUpdate: boolean;
|
|
113
|
+
/** @internal */
|
|
85
114
|
masterMeshPreviousWorldMatrix: Nullable<Matrix>;
|
|
115
|
+
/** @internal */
|
|
86
116
|
engine: AbstractEngine;
|
|
87
117
|
}
|
|
88
118
|
/**
|
|
@@ -90,24 +120,38 @@ declare class _InstanceDataStorage {
|
|
|
90
120
|
**/
|
|
91
121
|
export declare class _InstancesBatch {
|
|
92
122
|
parent: _InstanceDataStorageRenderPass;
|
|
123
|
+
/** @internal */
|
|
93
124
|
mustReturn: boolean;
|
|
125
|
+
/** @internal */
|
|
94
126
|
visibleInstances: Nullable<InstancedMesh[]>[];
|
|
127
|
+
/** @internal */
|
|
95
128
|
renderSelf: boolean[];
|
|
129
|
+
/** @internal */
|
|
96
130
|
hardwareInstancedRendering: boolean[];
|
|
131
|
+
/** @internal */
|
|
97
132
|
constructor(parent: _InstanceDataStorageRenderPass);
|
|
98
133
|
}
|
|
99
134
|
/**
|
|
100
135
|
* @internal
|
|
101
136
|
**/
|
|
102
137
|
declare class _ThinInstanceDataStorage {
|
|
138
|
+
/** @internal */
|
|
103
139
|
instancesCount: number;
|
|
140
|
+
/** @internal */
|
|
104
141
|
matrixBuffer: Nullable<Buffer>;
|
|
142
|
+
/** @internal */
|
|
105
143
|
previousMatrixBuffer: Nullable<Buffer>;
|
|
144
|
+
/** @internal */
|
|
106
145
|
matrixBufferSize: number;
|
|
146
|
+
/** @internal */
|
|
107
147
|
matrixData: Nullable<Float32Array>;
|
|
148
|
+
/** @internal */
|
|
108
149
|
previousMatrixData: Nullable<Float32Array>;
|
|
150
|
+
/** @internal */
|
|
109
151
|
boundingVectors: Array<Vector3>;
|
|
152
|
+
/** @internal */
|
|
110
153
|
worldMatrices: Nullable<Matrix[]>;
|
|
154
|
+
/** @internal */
|
|
111
155
|
masterMeshPreviousWorldMatrix: Nullable<Matrix>;
|
|
112
156
|
}
|
|
113
157
|
/**
|
|
@@ -236,7 +280,9 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
236
280
|
* Observers added to this observable will be removed once triggered
|
|
237
281
|
*/
|
|
238
282
|
onMeshReadyObservable: Observable<Mesh>;
|
|
283
|
+
/** {@inheritDoc} */
|
|
239
284
|
get computeBonesUsingShaders(): boolean;
|
|
285
|
+
/** {@inheritDoc} */
|
|
240
286
|
set computeBonesUsingShaders(value: boolean);
|
|
241
287
|
/**
|
|
242
288
|
* An event triggered before rendering the mesh
|
|
@@ -263,7 +309,9 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
263
309
|
* Sets a callback to call before drawing the mesh. It is recommended to use onBeforeDrawObservable instead
|
|
264
310
|
*/
|
|
265
311
|
set onBeforeDraw(callback: () => void);
|
|
312
|
+
/** {@inheritDoc} */
|
|
266
313
|
get hasInstances(): boolean;
|
|
314
|
+
/** {@inheritDoc} */
|
|
267
315
|
get hasThinInstances(): boolean;
|
|
268
316
|
/**
|
|
269
317
|
* Gets the delay loading state of the mesh (when delay loading is turned on)
|
|
@@ -331,7 +379,9 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
331
379
|
*/
|
|
332
380
|
get overrideRenderingFillMode(): Nullable<number>;
|
|
333
381
|
set overrideRenderingFillMode(fillMode: Nullable<number>);
|
|
382
|
+
/** {@inheritDoc} */
|
|
334
383
|
get material(): Nullable<Material>;
|
|
384
|
+
/** {@inheritDoc} */
|
|
335
385
|
set material(value: Nullable<Material>);
|
|
336
386
|
/**
|
|
337
387
|
* Gets or sets a boolean indicating whether to render ignoring the active camera's max z setting. (false by default)
|
|
@@ -391,6 +441,13 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
391
441
|
* @param clonePhysicsImpostor When cloning, include cloning mesh physics impostor, default True.
|
|
392
442
|
*/
|
|
393
443
|
constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<Mesh>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean);
|
|
444
|
+
/**
|
|
445
|
+
* Instantiate (when possible) or clone that node with its hierarchy
|
|
446
|
+
* @param newParent defines the new parent to use for the instance (or clone)
|
|
447
|
+
* @param options defines options to configure how copy is done
|
|
448
|
+
* @param onNewNodeCreated defines an option callback to call when a clone or an instance is created
|
|
449
|
+
* @returns an instance (or a clone) of the current node with its hierarchy
|
|
450
|
+
*/
|
|
394
451
|
instantiateHierarchy(newParent?: Nullable<TransformNode>, options?: {
|
|
395
452
|
doNotInstantiate: boolean | ((node: TransformNode) => boolean);
|
|
396
453
|
}, onNewNodeCreated?: (source: TransformNode, clone: TransformNode) => void): Nullable<TransformNode>;
|
|
@@ -482,9 +539,33 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
482
539
|
* @returns a FloatArray or null if the mesh has no geometry or no vertex buffer for this kind.
|
|
483
540
|
*/
|
|
484
541
|
getVerticesData(kind: string, copyWhenShared?: boolean, forceCopy?: boolean, bypassInstanceData?: boolean): Nullable<FloatArray>;
|
|
542
|
+
/**
|
|
543
|
+
* Copies the requested vertex data kind into the given vertex data map. Float data is constructed if the map doesn't have the data.
|
|
544
|
+
* @param kind defines the vertex data kind to use
|
|
545
|
+
* @param vertexData defines the map that stores the resulting data
|
|
546
|
+
*/
|
|
485
547
|
copyVerticesData(kind: string, vertexData: {
|
|
486
548
|
[kind: string]: Float32Array;
|
|
487
549
|
}): void;
|
|
550
|
+
/**
|
|
551
|
+
* Returns the mesh VertexBuffer object from the requested `kind`
|
|
552
|
+
* @param kind defines which buffer to read from (positions, indices, normals, etc). Possible `kind` values :
|
|
553
|
+
* - VertexBuffer.PositionKind
|
|
554
|
+
* - VertexBuffer.NormalKind
|
|
555
|
+
* - VertexBuffer.UVKind
|
|
556
|
+
* - VertexBuffer.UV2Kind
|
|
557
|
+
* - VertexBuffer.UV3Kind
|
|
558
|
+
* - VertexBuffer.UV4Kind
|
|
559
|
+
* - VertexBuffer.UV5Kind
|
|
560
|
+
* - VertexBuffer.UV6Kind
|
|
561
|
+
* - VertexBuffer.ColorKind
|
|
562
|
+
* - VertexBuffer.MatricesIndicesKind
|
|
563
|
+
* - VertexBuffer.MatricesIndicesExtraKind
|
|
564
|
+
* - VertexBuffer.MatricesWeightsKind
|
|
565
|
+
* - VertexBuffer.MatricesWeightsExtraKind
|
|
566
|
+
* @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
|
|
567
|
+
* @returns a FloatArray or null if the mesh has no vertex buffer for this kind.
|
|
568
|
+
*/
|
|
488
569
|
getVertexBuffer(kind: string, bypassInstanceData?: boolean): Nullable<VertexBuffer>;
|
|
489
570
|
/**
|
|
490
571
|
* Tests if a specific vertex buffer is associated with this mesh
|
|
@@ -543,6 +624,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
543
624
|
* @returns the indices array or an empty array if the mesh has no geometry
|
|
544
625
|
*/
|
|
545
626
|
getIndices(copyWhenShared?: boolean, forceCopy?: boolean): Nullable<IndicesArray>;
|
|
627
|
+
/** {@inheritDoc} */
|
|
546
628
|
get isBlocked(): boolean;
|
|
547
629
|
/**
|
|
548
630
|
* Determine if the current mesh is ready to be rendered
|
|
@@ -1085,7 +1167,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1085
1167
|
* Merge the array of meshes into a single mesh for performance reasons.
|
|
1086
1168
|
* @param meshes array of meshes with the vertices to merge. Entries cannot be empty meshes.
|
|
1087
1169
|
* @param disposeSource when true (default), dispose of the vertices from the source meshes.
|
|
1088
|
-
* @param allow32BitsIndices when the sum of the vertices
|
|
1170
|
+
* @param allow32BitsIndices when the sum of the vertices \> 64k, this must be set to true.
|
|
1089
1171
|
* @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
|
|
1090
1172
|
* @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
|
|
1091
1173
|
* @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
|
|
@@ -1096,7 +1178,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1096
1178
|
* Merge the array of meshes into a single mesh for performance reasons.
|
|
1097
1179
|
* @param meshes array of meshes with the vertices to merge. Entries cannot be empty meshes.
|
|
1098
1180
|
* @param disposeSource when true (default), dispose of the vertices from the source meshes.
|
|
1099
|
-
* @param allow32BitsIndices when the sum of the vertices
|
|
1181
|
+
* @param allow32BitsIndices when the sum of the vertices \> 64k, this must be set to true.
|
|
1100
1182
|
* @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
|
|
1101
1183
|
* @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
|
|
1102
1184
|
* @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
|
|
@@ -1126,133 +1208,133 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1126
1208
|
/**
|
|
1127
1209
|
* Creates a ribbon mesh.
|
|
1128
1210
|
* @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
|
|
1211
|
+
* @param _name defines the name of the mesh to create
|
|
1212
|
+
* @param _pathArray is a required array of paths, what are each an array of successive Vector3. The pathArray parameter depicts the ribbon geometry.
|
|
1213
|
+
* @param _closeArray creates a seam between the first and the last paths of the path array (default is false)
|
|
1214
|
+
* @param _closePath creates a seam between the first and the last points of each path of the path array
|
|
1215
|
+
* @param _offset is taken in account only if the `pathArray` is containing a single path
|
|
1216
|
+
* @param _scene defines the hosting scene
|
|
1217
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1218
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1219
|
+
* @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
1220
|
* @returns a new Mesh
|
|
1139
1221
|
* @deprecated Please use MeshBuilder instead
|
|
1140
1222
|
*/
|
|
1141
|
-
static CreateRibbon(
|
|
1223
|
+
static CreateRibbon(_name: string, _pathArray: Vector3[][], _closeArray: boolean, _closePath: boolean, _offset: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
1142
1224
|
/**
|
|
1143
1225
|
* Creates a plane polygonal mesh. By default, this is a disc.
|
|
1144
|
-
* @param
|
|
1145
|
-
* @param
|
|
1146
|
-
* @param
|
|
1147
|
-
* @param
|
|
1148
|
-
* @param
|
|
1149
|
-
* @param
|
|
1226
|
+
* @param _name defines the name of the mesh to create
|
|
1227
|
+
* @param _radius sets the radius size (float) of the polygon (default 0.5)
|
|
1228
|
+
* @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
|
|
1229
|
+
* @param _scene defines the hosting scene
|
|
1230
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1231
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1150
1232
|
* @returns a new Mesh
|
|
1151
1233
|
* @deprecated Please use MeshBuilder instead
|
|
1152
1234
|
*/
|
|
1153
|
-
static CreateDisc(
|
|
1235
|
+
static CreateDisc(_name: string, _radius: number, _tessellation: number, _scene: Nullable<Scene>, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1154
1236
|
/**
|
|
1155
1237
|
* Creates a box mesh.
|
|
1156
|
-
* @param
|
|
1157
|
-
* @param
|
|
1158
|
-
* @param
|
|
1159
|
-
* @param
|
|
1160
|
-
* @param
|
|
1238
|
+
* @param _name defines the name of the mesh to create
|
|
1239
|
+
* @param _size sets the size (float) of each box side (default 1)
|
|
1240
|
+
* @param _scene defines the hosting scene
|
|
1241
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1242
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1161
1243
|
* @returns a new Mesh
|
|
1162
1244
|
* @deprecated Please use MeshBuilder instead
|
|
1163
1245
|
*/
|
|
1164
|
-
static CreateBox(
|
|
1246
|
+
static CreateBox(_name: string, _size: number, _scene: Nullable<Scene>, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1165
1247
|
/**
|
|
1166
1248
|
* Creates a sphere mesh.
|
|
1167
|
-
* @param
|
|
1168
|
-
* @param
|
|
1169
|
-
* @param
|
|
1170
|
-
* @param
|
|
1171
|
-
* @param
|
|
1172
|
-
* @param
|
|
1249
|
+
* @param _name defines the name of the mesh to create
|
|
1250
|
+
* @param _segments sets the sphere number of horizontal stripes (positive integer, default 32)
|
|
1251
|
+
* @param _diameter sets the diameter size (float) of the sphere (default 1)
|
|
1252
|
+
* @param _scene defines the hosting scene
|
|
1253
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1254
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1173
1255
|
* @returns a new Mesh
|
|
1174
1256
|
* @deprecated Please use MeshBuilder instead
|
|
1175
1257
|
*/
|
|
1176
|
-
static CreateSphere(
|
|
1258
|
+
static CreateSphere(_name: string, _segments: number, _diameter: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1177
1259
|
/**
|
|
1178
1260
|
* Creates a hemisphere mesh.
|
|
1179
|
-
* @param
|
|
1180
|
-
* @param
|
|
1181
|
-
* @param
|
|
1182
|
-
* @param
|
|
1261
|
+
* @param _name defines the name of the mesh to create
|
|
1262
|
+
* @param _segments sets the sphere number of horizontal stripes (positive integer, default 32)
|
|
1263
|
+
* @param _diameter sets the diameter size (float) of the sphere (default 1)
|
|
1264
|
+
* @param _scene defines the hosting scene
|
|
1183
1265
|
* @returns a new Mesh
|
|
1184
1266
|
* @deprecated Please use MeshBuilder instead
|
|
1185
1267
|
*/
|
|
1186
|
-
static CreateHemisphere(
|
|
1268
|
+
static CreateHemisphere(_name: string, _segments: number, _diameter: number, _scene?: Scene): Mesh;
|
|
1187
1269
|
/**
|
|
1188
1270
|
* 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
|
|
1271
|
+
* @param _name defines the name of the mesh to create
|
|
1272
|
+
* @param _height sets the height size (float) of the cylinder/cone (float, default 2)
|
|
1273
|
+
* @param _diameterTop set the top cap diameter (floats, default 1)
|
|
1274
|
+
* @param _diameterBottom set the bottom cap diameter (floats, default 1). This value can't be zero
|
|
1275
|
+
* @param _tessellation sets the number of cylinder sides (positive integer, default 24). Set it to 3 to get a prism for instance
|
|
1276
|
+
* @param _subdivisions sets the number of rings along the cylinder height (positive integer, default 1)
|
|
1277
|
+
* @param _scene defines the hosting scene
|
|
1278
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1279
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1198
1280
|
* @returns a new Mesh
|
|
1199
1281
|
* @deprecated Please use MeshBuilder instead
|
|
1200
1282
|
*/
|
|
1201
|
-
static CreateCylinder(
|
|
1283
|
+
static CreateCylinder(_name: string, _height: number, _diameterTop: number, _diameterBottom: number, _tessellation: number, _subdivisions: any, _scene?: Scene, _updatable?: any, _sideOrientation?: number): Mesh;
|
|
1202
1284
|
/**
|
|
1203
1285
|
* Creates a torus mesh.
|
|
1204
|
-
* @param
|
|
1205
|
-
* @param
|
|
1206
|
-
* @param
|
|
1207
|
-
* @param
|
|
1208
|
-
* @param
|
|
1209
|
-
* @param
|
|
1210
|
-
* @param
|
|
1286
|
+
* @param _name defines the name of the mesh to create
|
|
1287
|
+
* @param _diameter sets the diameter size (float) of the torus (default 1)
|
|
1288
|
+
* @param _thickness sets the diameter size of the tube of the torus (float, default 0.5)
|
|
1289
|
+
* @param _tessellation sets the number of torus sides (positive integer, default 16)
|
|
1290
|
+
* @param _scene defines the hosting scene
|
|
1291
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1292
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1211
1293
|
* @returns a new Mesh
|
|
1212
1294
|
* @deprecated Please use MeshBuilder instead
|
|
1213
1295
|
*/
|
|
1214
|
-
static CreateTorus(
|
|
1296
|
+
static CreateTorus(_name: string, _diameter: number, _thickness: number, _tessellation: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1215
1297
|
/**
|
|
1216
1298
|
* 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
|
|
1299
|
+
* @param _name defines the name of the mesh to create
|
|
1300
|
+
* @param _radius sets the global radius size (float) of the torus knot (default 2)
|
|
1301
|
+
* @param _tube sets the diameter size of the tube of the torus (float, default 0.5)
|
|
1302
|
+
* @param _radialSegments sets the number of sides on each tube segments (positive integer, default 32)
|
|
1303
|
+
* @param _tubularSegments sets the number of tubes to decompose the knot into (positive integer, default 32)
|
|
1304
|
+
* @param _p the number of windings on X axis (positive integers, default 2)
|
|
1305
|
+
* @param _q the number of windings on Y axis (positive integers, default 3)
|
|
1306
|
+
* @param _scene defines the hosting scene
|
|
1307
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1308
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1227
1309
|
* @returns a new Mesh
|
|
1228
1310
|
* @deprecated Please use MeshBuilder instead
|
|
1229
1311
|
*/
|
|
1230
|
-
static CreateTorusKnot(
|
|
1312
|
+
static CreateTorusKnot(_name: string, _radius: number, _tube: number, _radialSegments: number, _tubularSegments: number, _p: number, _q: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1231
1313
|
/**
|
|
1232
1314
|
* Creates a line mesh..
|
|
1233
|
-
* @param
|
|
1234
|
-
* @param
|
|
1235
|
-
* @param
|
|
1236
|
-
* @param
|
|
1237
|
-
* @param
|
|
1315
|
+
* @param _name defines the name of the mesh to create
|
|
1316
|
+
* @param _points is an array successive Vector3
|
|
1317
|
+
* @param _scene defines the hosting scene
|
|
1318
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1319
|
+
* @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
1320
|
* @returns a new Mesh
|
|
1239
1321
|
* @deprecated Please use MeshBuilder instead
|
|
1240
1322
|
*/
|
|
1241
|
-
static CreateLines(
|
|
1323
|
+
static CreateLines(_name: string, _points: Vector3[], _scene: Nullable<Scene>, _updatable: boolean, _instance?: Nullable<LinesMesh>): LinesMesh;
|
|
1242
1324
|
/**
|
|
1243
1325
|
* Creates a dashed line mesh.
|
|
1244
|
-
* @param
|
|
1245
|
-
* @param
|
|
1246
|
-
* @param
|
|
1247
|
-
* @param
|
|
1248
|
-
* @param
|
|
1249
|
-
* @param
|
|
1250
|
-
* @param
|
|
1251
|
-
* @param
|
|
1326
|
+
* @param _name defines the name of the mesh to create
|
|
1327
|
+
* @param _points is an array successive Vector3
|
|
1328
|
+
* @param _dashSize is the size of the dashes relatively the dash number (positive float, default 3)
|
|
1329
|
+
* @param _gapSize is the size of the gap between two successive dashes relatively the dash number (positive float, default 1)
|
|
1330
|
+
* @param _dashNb is the intended total number of dashes (positive integer, default 200)
|
|
1331
|
+
* @param _scene defines the hosting scene
|
|
1332
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1333
|
+
* @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
1334
|
* @returns a new Mesh
|
|
1253
1335
|
* @deprecated Please use MeshBuilder instead
|
|
1254
1336
|
*/
|
|
1255
|
-
static CreateDashedLines(
|
|
1337
|
+
static CreateDashedLines(_name: string, _points: Vector3[], _dashSize: number, _gapSize: number, _dashNb: number, _scene: Nullable<Scene>, _updatable?: boolean, _instance?: LinesMesh): LinesMesh;
|
|
1256
1338
|
/**
|
|
1257
1339
|
* Creates a polygon mesh.Please consider using the same method from the MeshBuilder class instead
|
|
1258
1340
|
* The polygon's shape will depend on the input parameters and is constructed parallel to a ground mesh.
|
|
@@ -1261,175 +1343,175 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1261
1343
|
* 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
1344
|
* Remember you can only change the shape positions, not their number when updating a polygon.
|
|
1263
1345
|
* @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
|
|
1346
|
+
* @param _name defines the name of the mesh to create
|
|
1347
|
+
* @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
|
|
1348
|
+
* @param _scene defines the hosting scene
|
|
1349
|
+
* @param _holes is a required array of arrays of successive Vector3 used to defines holes in the polygon
|
|
1350
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1351
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1352
|
+
* @param _earcutInjection can be used to inject your own earcut reference
|
|
1271
1353
|
* @returns a new Mesh
|
|
1272
1354
|
* @deprecated Please use MeshBuilder instead
|
|
1273
1355
|
*/
|
|
1274
|
-
static CreatePolygon(
|
|
1356
|
+
static CreatePolygon(_name: string, _shape: Vector3[], _scene: Scene, _holes?: Vector3[][], _updatable?: boolean, _sideOrientation?: number, _earcutInjection?: any): Mesh;
|
|
1275
1357
|
/**
|
|
1276
1358
|
* Creates an extruded polygon mesh, with depth in the Y direction..
|
|
1277
1359
|
* @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
|
|
1360
|
+
* @param _name defines the name of the mesh to create
|
|
1361
|
+
* @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
|
|
1362
|
+
* @param _depth defines the height of extrusion
|
|
1363
|
+
* @param _scene defines the hosting scene
|
|
1364
|
+
* @param _holes is a required array of arrays of successive Vector3 used to defines holes in the polygon
|
|
1365
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1366
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1367
|
+
* @param _earcutInjection can be used to inject your own earcut reference
|
|
1286
1368
|
* @returns a new Mesh
|
|
1287
1369
|
* @deprecated Please use MeshBuilder instead
|
|
1288
1370
|
*/
|
|
1289
|
-
static ExtrudePolygon(
|
|
1371
|
+
static ExtrudePolygon(_name: string, _shape: Vector3[], _depth: number, _scene: Scene, _holes?: Vector3[][], _updatable?: boolean, _sideOrientation?: number, _earcutInjection?: any): Mesh;
|
|
1290
1372
|
/**
|
|
1291
1373
|
* Creates an extruded shape mesh.
|
|
1292
1374
|
* The extrusion is a parametric shape. It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1293
1375
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
1294
1376
|
* @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
|
|
1377
|
+
* @param _name defines the name of the mesh to create
|
|
1378
|
+
* @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
|
|
1379
|
+
* @param _path is a required array of successive Vector3. This is the axis curve the shape is extruded along
|
|
1380
|
+
* @param _scale is the value to scale the shape
|
|
1381
|
+
* @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
|
|
1382
|
+
* @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
|
|
1383
|
+
* @param _scene defines the hosting scene
|
|
1384
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1385
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1386
|
+
* @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
1387
|
* @returns a new Mesh
|
|
1306
1388
|
* @deprecated Please use MeshBuilder instead
|
|
1307
1389
|
*/
|
|
1308
|
-
static ExtrudeShape(
|
|
1390
|
+
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
1391
|
/**
|
|
1310
1392
|
* Creates an custom extruded shape mesh.
|
|
1311
1393
|
* The custom extrusion is a parametric shape.
|
|
1312
1394
|
* It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1313
1395
|
*
|
|
1314
1396
|
* @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
|
|
1397
|
+
* @param _name defines the name of the mesh to create
|
|
1398
|
+
* @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
|
|
1399
|
+
* @param _path is a required array of successive Vector3. This is the axis curve the shape is extruded along
|
|
1400
|
+
* @param _scaleFunction is a custom Javascript function called on each path point
|
|
1401
|
+
* @param _rotationFunction is a custom Javascript function called on each path point
|
|
1402
|
+
* @param _ribbonCloseArray forces the extrusion underlying ribbon to close all the paths in its `pathArray`
|
|
1403
|
+
* @param _ribbonClosePath forces the extrusion underlying ribbon to close its `pathArray`
|
|
1404
|
+
* @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
|
|
1405
|
+
* @param _scene defines the hosting scene
|
|
1406
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1407
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1408
|
+
* @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
1409
|
* @returns a new Mesh
|
|
1328
1410
|
* @deprecated Please use MeshBuilder instead
|
|
1329
1411
|
*/
|
|
1330
|
-
static ExtrudeShapeCustom(
|
|
1412
|
+
static ExtrudeShapeCustom(_name: string, _shape: Vector3[], _path: Vector3[], _scaleFunction: Nullable<{
|
|
1331
1413
|
(i: number, distance: number): number;
|
|
1332
|
-
}>,
|
|
1414
|
+
}>, _rotationFunction: Nullable<{
|
|
1333
1415
|
(i: number, distance: number): number;
|
|
1334
|
-
}>,
|
|
1416
|
+
}>, _ribbonCloseArray: boolean, _ribbonClosePath: boolean, _cap: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
1335
1417
|
/**
|
|
1336
1418
|
* Creates lathe mesh.
|
|
1337
1419
|
* 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
|
|
1420
|
+
* @param _name defines the name of the mesh to create
|
|
1421
|
+
* @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
|
|
1422
|
+
* @param _radius is the radius value of the lathe
|
|
1423
|
+
* @param _tessellation is the side number of the lathe.
|
|
1424
|
+
* @param _scene defines the hosting scene
|
|
1425
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1426
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1345
1427
|
* @returns a new Mesh
|
|
1346
1428
|
* @deprecated Please use MeshBuilder instead
|
|
1347
1429
|
*/
|
|
1348
|
-
static CreateLathe(
|
|
1430
|
+
static CreateLathe(_name: string, _shape: Vector3[], _radius: number, _tessellation: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1349
1431
|
/**
|
|
1350
1432
|
* Creates a plane mesh.
|
|
1351
|
-
* @param
|
|
1352
|
-
* @param
|
|
1353
|
-
* @param
|
|
1354
|
-
* @param
|
|
1355
|
-
* @param
|
|
1433
|
+
* @param _name defines the name of the mesh to create
|
|
1434
|
+
* @param _size sets the size (float) of both sides of the plane at once (default 1)
|
|
1435
|
+
* @param _scene defines the hosting scene
|
|
1436
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1437
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1356
1438
|
* @returns a new Mesh
|
|
1357
1439
|
* @deprecated Please use MeshBuilder instead
|
|
1358
1440
|
*/
|
|
1359
|
-
static CreatePlane(
|
|
1441
|
+
static CreatePlane(_name: string, _size: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
1360
1442
|
/**
|
|
1361
1443
|
* Creates a ground mesh.
|
|
1362
|
-
* @param
|
|
1363
|
-
* @param
|
|
1364
|
-
* @param
|
|
1365
|
-
* @param
|
|
1366
|
-
* @param
|
|
1367
|
-
* @param
|
|
1444
|
+
* @param _name defines the name of the mesh to create
|
|
1445
|
+
* @param _width set the width of the ground
|
|
1446
|
+
* @param _height set the height of the ground
|
|
1447
|
+
* @param _subdivisions sets the number of subdivisions per side
|
|
1448
|
+
* @param _scene defines the hosting scene
|
|
1449
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1368
1450
|
* @returns a new Mesh
|
|
1369
1451
|
* @deprecated Please use MeshBuilder instead
|
|
1370
1452
|
*/
|
|
1371
|
-
static CreateGround(
|
|
1453
|
+
static CreateGround(_name: string, _width: number, _height: number, _subdivisions: number, _scene?: Scene, _updatable?: boolean): Mesh;
|
|
1372
1454
|
/**
|
|
1373
1455
|
* Creates a tiled ground mesh.
|
|
1374
|
-
* @param
|
|
1375
|
-
* @param
|
|
1376
|
-
* @param
|
|
1377
|
-
* @param
|
|
1378
|
-
* @param
|
|
1379
|
-
* @param
|
|
1380
|
-
* @param
|
|
1381
|
-
* @param
|
|
1382
|
-
* @param
|
|
1456
|
+
* @param _name defines the name of the mesh to create
|
|
1457
|
+
* @param _xmin set the ground minimum X coordinate
|
|
1458
|
+
* @param _zmin set the ground minimum Y coordinate
|
|
1459
|
+
* @param _xmax set the ground maximum X coordinate
|
|
1460
|
+
* @param _zmax set the ground maximum Z coordinate
|
|
1461
|
+
* @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
|
|
1462
|
+
* @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
|
|
1463
|
+
* @param _scene defines the hosting scene
|
|
1464
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1383
1465
|
* @returns a new Mesh
|
|
1384
1466
|
* @deprecated Please use MeshBuilder instead
|
|
1385
1467
|
*/
|
|
1386
|
-
static CreateTiledGround(
|
|
1468
|
+
static CreateTiledGround(_name: string, _xmin: number, _zmin: number, _xmax: number, _zmax: number, _subdivisions: {
|
|
1387
1469
|
w: number;
|
|
1388
1470
|
h: number;
|
|
1389
|
-
},
|
|
1471
|
+
}, _precision: {
|
|
1390
1472
|
w: number;
|
|
1391
1473
|
h: number;
|
|
1392
|
-
},
|
|
1474
|
+
}, _scene: Scene, _updatable?: boolean): Mesh;
|
|
1393
1475
|
/**
|
|
1394
1476
|
* Creates a ground mesh from a height map.
|
|
1395
1477
|
* @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
|
|
1478
|
+
* @param _name defines the name of the mesh to create
|
|
1479
|
+
* @param _url sets the URL of the height map image resource
|
|
1480
|
+
* @param _width set the ground width size
|
|
1481
|
+
* @param _height set the ground height size
|
|
1482
|
+
* @param _subdivisions sets the number of subdivision per side
|
|
1483
|
+
* @param _minHeight is the minimum altitude on the ground
|
|
1484
|
+
* @param _maxHeight is the maximum altitude on the ground
|
|
1485
|
+
* @param _scene defines the hosting scene
|
|
1486
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1487
|
+
* @param _onReady is a callback function that will be called once the mesh is built (the height map download can last some time)
|
|
1488
|
+
* @param _alphaFilter will filter any data where the alpha channel is below this value, defaults 0 (all data visible)
|
|
1407
1489
|
* @returns a new Mesh
|
|
1408
1490
|
* @deprecated Please use MeshBuilder instead
|
|
1409
1491
|
*/
|
|
1410
|
-
static CreateGroundFromHeightMap(
|
|
1492
|
+
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
1493
|
/**
|
|
1412
1494
|
* Creates a tube mesh.
|
|
1413
1495
|
* The tube is a parametric shape.
|
|
1414
1496
|
* It has no predefined shape. Its final shape will depend on the input parameters.
|
|
1415
1497
|
*
|
|
1416
1498
|
* @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
|
|
1499
|
+
* @param _name defines the name of the mesh to create
|
|
1500
|
+
* @param _path is a required array of successive Vector3. It is the curve used as the axis of the tube
|
|
1501
|
+
* @param _radius sets the tube radius size
|
|
1502
|
+
* @param _tessellation is the number of sides on the tubular surface
|
|
1503
|
+
* @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
|
|
1504
|
+
* @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
|
|
1505
|
+
* @param _scene defines the hosting scene
|
|
1506
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
1507
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
1508
|
+
* @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
1509
|
* @returns a new Mesh
|
|
1428
1510
|
* @deprecated Please use MeshBuilder instead
|
|
1429
1511
|
*/
|
|
1430
|
-
static CreateTube(
|
|
1512
|
+
static CreateTube(_name: string, _path: Vector3[], _radius: number, _tessellation: number, _radiusFunction: {
|
|
1431
1513
|
(i: number, distance: number): number;
|
|
1432
|
-
},
|
|
1514
|
+
}, _cap: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
1433
1515
|
/**
|
|
1434
1516
|
* Creates a polyhedron mesh.
|
|
1435
1517
|
*.
|
|
@@ -1444,13 +1526,13 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1444
1526
|
* * You can also set the mesh side orientation with the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
|
|
1445
1527
|
* * 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
1528
|
* * 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
|
|
1529
|
+
* @param _name defines the name of the mesh to create
|
|
1530
|
+
* @param _options defines the options used to create the mesh
|
|
1531
|
+
* @param _scene defines the hosting scene
|
|
1450
1532
|
* @returns a new Mesh
|
|
1451
1533
|
* @deprecated Please use MeshBuilder instead
|
|
1452
1534
|
*/
|
|
1453
|
-
static CreatePolyhedron(
|
|
1535
|
+
static CreatePolyhedron(_name: string, _options: {
|
|
1454
1536
|
type?: number;
|
|
1455
1537
|
size?: number;
|
|
1456
1538
|
sizeX?: number;
|
|
@@ -1461,7 +1543,7 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1461
1543
|
faceColors?: Color4[];
|
|
1462
1544
|
updatable?: boolean;
|
|
1463
1545
|
sideOrientation?: number;
|
|
1464
|
-
},
|
|
1546
|
+
}, _scene: Scene): Mesh;
|
|
1465
1547
|
/**
|
|
1466
1548
|
* Creates a sphere based upon an icosahedron with 20 triangular faces which can be subdivided
|
|
1467
1549
|
* * The parameter `radius` sets the radius size (float) of the icosphere (default 1)
|
|
@@ -1472,49 +1554,49 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
1472
1554
|
* * 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
1555
|
* * 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
1556
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/polyhedra#icosphere
|
|
1475
|
-
* @param
|
|
1476
|
-
* @param
|
|
1477
|
-
* @param
|
|
1557
|
+
* @param _name defines the name of the mesh
|
|
1558
|
+
* @param _options defines the options used to create the mesh
|
|
1559
|
+
* @param _scene defines the hosting scene
|
|
1478
1560
|
* @returns a new Mesh
|
|
1479
1561
|
* @deprecated Please use MeshBuilder instead
|
|
1480
1562
|
*/
|
|
1481
|
-
static CreateIcoSphere(
|
|
1563
|
+
static CreateIcoSphere(_name: string, _options: {
|
|
1482
1564
|
radius?: number;
|
|
1483
1565
|
flat?: boolean;
|
|
1484
1566
|
subdivisions?: number;
|
|
1485
1567
|
sideOrientation?: number;
|
|
1486
1568
|
updatable?: boolean;
|
|
1487
|
-
},
|
|
1569
|
+
}, _scene: Scene): Mesh;
|
|
1488
1570
|
/**
|
|
1489
1571
|
* Creates a decal mesh.
|
|
1490
1572
|
*.
|
|
1491
1573
|
* 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
|
|
1574
|
+
* @param _name defines the name of the mesh
|
|
1575
|
+
* @param _sourceMesh defines the mesh receiving the decal
|
|
1576
|
+
* @param _position sets the position of the decal in world coordinates
|
|
1577
|
+
* @param _normal sets the normal of the mesh where the decal is applied onto in world coordinates
|
|
1578
|
+
* @param _size sets the decal scaling
|
|
1579
|
+
* @param _angle sets the angle to rotate the decal
|
|
1498
1580
|
* @returns a new Mesh
|
|
1499
1581
|
* @deprecated Please use MeshBuilder instead
|
|
1500
1582
|
*/
|
|
1501
|
-
static CreateDecal(
|
|
1583
|
+
static CreateDecal(_name: string, _sourceMesh: AbstractMesh, _position: Vector3, _normal: Vector3, _size: Vector3, _angle: number): Mesh;
|
|
1502
1584
|
/** Creates a Capsule Mesh
|
|
1503
|
-
* @param
|
|
1504
|
-
* @param
|
|
1505
|
-
* @param
|
|
1585
|
+
* @param _name defines the name of the mesh.
|
|
1586
|
+
* @param _options the constructors options used to shape the mesh.
|
|
1587
|
+
* @param _scene defines the scene the mesh is scoped to.
|
|
1506
1588
|
* @returns the capsule mesh
|
|
1507
1589
|
* @see https://doc.babylonjs.com/how_to/capsule_shape
|
|
1508
1590
|
* @deprecated Please use MeshBuilder instead
|
|
1509
1591
|
*/
|
|
1510
|
-
static CreateCapsule(
|
|
1592
|
+
static CreateCapsule(_name: string, _options: ICreateCapsuleOptions, _scene: Scene): Mesh;
|
|
1511
1593
|
/**
|
|
1512
1594
|
* Extends a mesh to a Goldberg mesh
|
|
1513
1595
|
* Warning the mesh to convert MUST be an import of a perviously exported Goldberg mesh
|
|
1514
|
-
* @param
|
|
1596
|
+
* @param _mesh the mesh to convert
|
|
1515
1597
|
* @returns the extended mesh
|
|
1516
1598
|
* @deprecated Please use ExtendMeshToGoldberg instead
|
|
1517
1599
|
*/
|
|
1518
|
-
static ExtendToGoldberg(
|
|
1600
|
+
static ExtendToGoldberg(_mesh: Mesh): Mesh;
|
|
1519
1601
|
}
|
|
1520
1602
|
export {};
|