@babylonjs/inspector 8.50.3 → 8.50.5
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/lib/{extensionsListService-Bl9imMOn.js → extensionsListService-DgeMhKhz.js} +7 -6
- package/lib/{extensionsListService-Bl9imMOn.js.map → extensionsListService-DgeMhKhz.js.map} +1 -1
- package/lib/{index-CTn2vCom.js → index-BOstsbT5.js} +497 -236
- package/lib/index-BOstsbT5.js.map +1 -0
- package/lib/index.d.ts +366 -230
- package/lib/index.js +6 -5
- package/lib/index.js.map +1 -1
- package/lib/{quickCreateToolsService-BGHjWv6H.js → quickCreateToolsService-Bag25vbR.js} +7 -6
- package/lib/{quickCreateToolsService-BGHjWv6H.js.map → quickCreateToolsService-Bag25vbR.js.map} +1 -1
- package/lib/{reflectorService-CiKXKaoZ.js → reflectorService-BQmQDll4.js} +7 -6
- package/lib/{reflectorService-CiKXKaoZ.js.map → reflectorService-BQmQDll4.js.map} +1 -1
- package/package.json +1 -1
- package/lib/index-CTn2vCom.js.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ComponentType, ComponentProps, FunctionComponent, PropsWithChildren, ForwardRefExoticComponent, RefAttributes, MouseEventHandler, HTMLProps, Component, ReactNode, ErrorInfo, Ref, MouseEvent, ElementRef, ReactElement } from 'react';
|
|
4
|
-
import { IDisposable as IDisposable$1, Nullable as Nullable$1, IReadonlyObservable as IReadonlyObservable$2, Observable as Observable$1, Scene as Scene$1, IInspectorOptions as IInspectorOptions$1 } from '@babylonjs/core/index.js';
|
|
4
|
+
import { IDisposable as IDisposable$1, Nullable as Nullable$1, IReadonlyObservable as IReadonlyObservable$2, Observable as Observable$1, Scene as Scene$1, Camera as Camera$1, Light as Light$1, IInspectorOptions as IInspectorOptions$1 } from '@babylonjs/core/index.js';
|
|
5
5
|
import { IReadonlyObservable as IReadonlyObservable$1, Observable as Observable$2 } from '@babylonjs/core/Misc/observable.js';
|
|
6
6
|
import { Nullable as Nullable$2 } from '@babylonjs/core/types.js';
|
|
7
|
+
import * as _fluentui_tokens from '@fluentui/tokens';
|
|
7
8
|
import { FluentProviderProps, PositioningImperativeRef, OnOpenChangeData, SpinnerProps, PositioningShorthand } from '@fluentui/react-components';
|
|
8
9
|
import { Color3 as Color3$1, Color4 as Color4$1 } from '@babylonjs/core/Maths/math.color.js';
|
|
9
10
|
import { Vector3 as Vector3$1, Quaternion as Quaternion$1 } from '@babylonjs/core/Maths/math.vector.js';
|
|
10
11
|
import { IDisposable as IDisposable$2, Scene as Scene$2 } from '@babylonjs/core/scene.js';
|
|
12
|
+
import { GizmoCoordinatesMode } from '@babylonjs/core/Gizmos/gizmo.js';
|
|
13
|
+
import { CameraGizmo } from '@babylonjs/core/Gizmos/cameraGizmo.js';
|
|
14
|
+
import { LightGizmo } from '@babylonjs/core/Gizmos/lightGizmo.js';
|
|
15
|
+
import { UtilityLayerRenderer as UtilityLayerRenderer$1 } from '@babylonjs/core/Rendering/utilityLayerRenderer.js';
|
|
11
16
|
import { TernaryDarkMode } from 'usehooks-ts';
|
|
12
17
|
import { DebugLayer as DebugLayer$1 } from '@babylonjs/core/Debug/debugLayer.js';
|
|
13
18
|
import { FluentIcon } from '@fluentui/react-icons';
|
|
@@ -364,6 +369,10 @@ interface ISettingsContext extends IService<typeof SettingsContextIdentity> {
|
|
|
364
369
|
* Shows the Properties pane when an entity is selected.
|
|
365
370
|
*/
|
|
366
371
|
showPropertiesOnEntitySelection: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Highlight the selected mesh in the scene using the selection outline layer.
|
|
374
|
+
*/
|
|
375
|
+
highlightSelectedEntity: boolean;
|
|
367
376
|
/**
|
|
368
377
|
* Observable that fires whenever a setting changes.
|
|
369
378
|
*/
|
|
@@ -838,6 +847,7 @@ declare function ExtensibleAccordion<ContextT = unknown>(props: PropsWithChildre
|
|
|
838
847
|
*/
|
|
839
848
|
declare const SidePaneContainer: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
840
849
|
|
|
850
|
+
declare function useTheme(invert?: boolean): _fluentui_tokens.Theme;
|
|
841
851
|
declare const Theme: FunctionComponent<FluentProviderProps & {
|
|
842
852
|
invert?: boolean;
|
|
843
853
|
}>;
|
|
@@ -1368,6 +1378,23 @@ interface IToolsService extends IService<typeof ToolsServiceIdentity> {
|
|
|
1368
1378
|
addSectionContent(content: DynamicAccordionSectionContent<Scene$2>): IDisposable$2;
|
|
1369
1379
|
}
|
|
1370
1380
|
|
|
1381
|
+
type Reference<T> = {
|
|
1382
|
+
value: T;
|
|
1383
|
+
} & IDisposable$1;
|
|
1384
|
+
type GizmoMode = "translate" | "rotate" | "scale" | "boundingBox";
|
|
1385
|
+
declare const GizmoServiceIdentity: unique symbol;
|
|
1386
|
+
interface IGizmoService extends IService<typeof GizmoServiceIdentity> {
|
|
1387
|
+
getUtilityLayer(scene: Scene$1, layer?: string): Reference<UtilityLayerRenderer$1>;
|
|
1388
|
+
getCameraGizmo(camera: Camera$1): Reference<CameraGizmo>;
|
|
1389
|
+
getLightGizmo(light: Light$1): Reference<LightGizmo>;
|
|
1390
|
+
getCameraGizmos(scene: Scene$1): readonly CameraGizmo[];
|
|
1391
|
+
getLightGizmos(scene: Scene$1): readonly LightGizmo[];
|
|
1392
|
+
gizmoMode: GizmoMode | undefined;
|
|
1393
|
+
readonly onGizmoModeChanged: IReadonlyObservable$2<void>;
|
|
1394
|
+
coordinatesMode: GizmoCoordinatesMode;
|
|
1395
|
+
readonly onCoordinatesModeChanged: IReadonlyObservable$2<void>;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1371
1398
|
type ModularToolOptions = {
|
|
1372
1399
|
/**
|
|
1373
1400
|
* The container element where the tool will be rendered.
|
|
@@ -23404,9 +23431,13 @@ declare abstract class WebGPUCacheRenderPipeline {
|
|
|
23404
23431
|
/** @internal */
|
|
23405
23432
|
declare class WebGPUDataBuffer extends DataBuffer {
|
|
23406
23433
|
private _buffer;
|
|
23434
|
+
/** @internal */
|
|
23407
23435
|
engineId: number;
|
|
23436
|
+
/** @internal */
|
|
23408
23437
|
set buffer(buffer: Nullable<GPUBuffer>);
|
|
23438
|
+
/** @internal */
|
|
23409
23439
|
constructor(resource?: GPUBuffer, capacity?: number);
|
|
23440
|
+
/** @internal */
|
|
23410
23441
|
get underlyingResource(): any;
|
|
23411
23442
|
}
|
|
23412
23443
|
|
|
@@ -32687,8 +32718,11 @@ declare class InstancedMesh extends AbstractMesh {
|
|
|
32687
32718
|
getClassName(): string;
|
|
32688
32719
|
/** Gets the list of lights affecting that mesh */
|
|
32689
32720
|
get lightSources(): Light[];
|
|
32721
|
+
/** @internal */
|
|
32690
32722
|
_resyncLightSources(): void;
|
|
32723
|
+
/** @internal */
|
|
32691
32724
|
_resyncLightSource(): void;
|
|
32725
|
+
/** @internal */
|
|
32692
32726
|
_removeLightSource(): void;
|
|
32693
32727
|
/**
|
|
32694
32728
|
* If the source mesh receives shadows
|
|
@@ -32742,7 +32776,7 @@ declare class InstancedMesh extends AbstractMesh {
|
|
|
32742
32776
|
/**
|
|
32743
32777
|
* Is this node ready to be used/rendered
|
|
32744
32778
|
* @param completeCheck defines if a complete check (including materials and lights) has to be done (false by default)
|
|
32745
|
-
* @returns
|
|
32779
|
+
* @returns is it ready
|
|
32746
32780
|
*/
|
|
32747
32781
|
isReady(completeCheck?: boolean): boolean;
|
|
32748
32782
|
/**
|
|
@@ -32753,9 +32787,11 @@ declare class InstancedMesh extends AbstractMesh {
|
|
|
32753
32787
|
* @returns a float array or a Float32Array of the requested kind of data : positions, normals, uvs, etc.
|
|
32754
32788
|
*/
|
|
32755
32789
|
getVerticesData(kind: string, copyWhenShared?: boolean, forceCopy?: boolean): Nullable<FloatArray>;
|
|
32790
|
+
/** @internal */
|
|
32756
32791
|
copyVerticesData(kind: string, vertexData: {
|
|
32757
32792
|
[kind: string]: Float32Array;
|
|
32758
32793
|
}): void;
|
|
32794
|
+
/** @internal */
|
|
32759
32795
|
getVertexBuffer(kind: string, bypassInstanceData?: boolean): Nullable<VertexBuffer>;
|
|
32760
32796
|
/**
|
|
32761
32797
|
* Sets the vertex data of the mesh geometry for the requested `kind`.
|
|
@@ -32851,7 +32887,9 @@ declare class InstancedMesh extends AbstractMesh {
|
|
|
32851
32887
|
* @returns an array of indices (IndicesArray).
|
|
32852
32888
|
*/
|
|
32853
32889
|
getIndices(): Nullable<IndicesArray>;
|
|
32890
|
+
/** @internal */
|
|
32854
32891
|
get _positions(): Nullable<Vector3[]>;
|
|
32892
|
+
/** @internal */
|
|
32855
32893
|
refreshBoundingInfo(applySkeletonOrOptions?: boolean | IMeshDataOptions, applyMorph?: boolean): InstancedMesh;
|
|
32856
32894
|
/** @internal */
|
|
32857
32895
|
_preActivate(): InstancedMesh;
|
|
@@ -32861,7 +32899,9 @@ declare class InstancedMesh extends AbstractMesh {
|
|
|
32861
32899
|
_activate(renderId: number, intermediateRendering: boolean): boolean;
|
|
32862
32900
|
/** @internal */
|
|
32863
32901
|
_postActivate(): void;
|
|
32902
|
+
/** @internal */
|
|
32864
32903
|
getWorldMatrix(): Matrix;
|
|
32904
|
+
/** @internal */
|
|
32865
32905
|
get isAnInstance(): boolean;
|
|
32866
32906
|
/**
|
|
32867
32907
|
* Returns the current associated LOD AbstractMesh.
|
|
@@ -32905,8 +32945,6 @@ declare class InstancedMesh extends AbstractMesh {
|
|
|
32905
32945
|
* Instantiate (when possible) or clone that node with its hierarchy
|
|
32906
32946
|
* @param newParent defines the new parent to use for the instance (or clone)
|
|
32907
32947
|
* @param options defines options to configure how copy is done
|
|
32908
|
-
* @param options.doNotInstantiate defines if the model must be instantiated or just cloned
|
|
32909
|
-
* @param options.newSourcedMesh newSourcedMesh the new source mesh for the instance (or clone)
|
|
32910
32948
|
* @param onNewNodeCreated defines an option callback to call when a clone or an instance is created
|
|
32911
32949
|
* @returns an instance (or a clone) of the current node with its hierarchy
|
|
32912
32950
|
*/
|
|
@@ -32916,6 +32954,7 @@ declare class InstancedMesh extends AbstractMesh {
|
|
|
32916
32954
|
}, onNewNodeCreated?: (source: TransformNode, clone: TransformNode) => void): Nullable<TransformNode>;
|
|
32917
32955
|
}
|
|
32918
32956
|
declare module "./mesh" {
|
|
32957
|
+
/** @internal */
|
|
32919
32958
|
interface Mesh {
|
|
32920
32959
|
/**
|
|
32921
32960
|
* Register a custom buffer that will be instanced
|
|
@@ -32934,21 +32973,27 @@ declare module "./mesh" {
|
|
|
32934
32973
|
edgesShareWithInstances: boolean;
|
|
32935
32974
|
/** @internal */
|
|
32936
32975
|
_userInstancedBuffersStorage: {
|
|
32976
|
+
/** @internal */
|
|
32937
32977
|
data: {
|
|
32938
32978
|
[key: string]: Float32Array;
|
|
32939
32979
|
};
|
|
32980
|
+
/** @internal */
|
|
32940
32981
|
sizes: {
|
|
32941
32982
|
[key: string]: number;
|
|
32942
32983
|
};
|
|
32984
|
+
/** @internal */
|
|
32943
32985
|
vertexBuffers: {
|
|
32944
32986
|
[key: string]: Nullable<VertexBuffer>;
|
|
32945
32987
|
};
|
|
32988
|
+
/** @internal */
|
|
32946
32989
|
strides: {
|
|
32947
32990
|
[key: string]: number;
|
|
32948
32991
|
};
|
|
32992
|
+
/** @internal */
|
|
32949
32993
|
vertexArrayObjects?: {
|
|
32950
32994
|
[key: string]: WebGLVertexArrayObject;
|
|
32951
32995
|
};
|
|
32996
|
+
/** @internal */
|
|
32952
32997
|
renderPasses?: {
|
|
32953
32998
|
[renderPassId: number]: {
|
|
32954
32999
|
[kind: string]: Nullable<VertexBuffer>;
|
|
@@ -32958,6 +33003,7 @@ declare module "./mesh" {
|
|
|
32958
33003
|
}
|
|
32959
33004
|
}
|
|
32960
33005
|
declare module "./abstractMesh" {
|
|
33006
|
+
/** @internal */
|
|
32961
33007
|
interface AbstractMesh {
|
|
32962
33008
|
/**
|
|
32963
33009
|
* Object used to store instanced buffers defined by user
|
|
@@ -33575,6 +33621,7 @@ declare class GroundMesh extends Mesh {
|
|
|
33575
33621
|
_minZ: number;
|
|
33576
33622
|
/** @internal */
|
|
33577
33623
|
_maxZ: number;
|
|
33624
|
+
/** @internal */
|
|
33578
33625
|
constructor(name: string, scene?: Scene);
|
|
33579
33626
|
/**
|
|
33580
33627
|
* "GroundMesh"
|
|
@@ -35308,16 +35355,27 @@ declare class InstancedLinesMesh extends InstancedMesh {
|
|
|
35308
35355
|
* @internal
|
|
35309
35356
|
**/
|
|
35310
35357
|
declare class _CreationDataStorage {
|
|
35358
|
+
/** @internal */
|
|
35311
35359
|
closePath?: boolean;
|
|
35360
|
+
/** @internal */
|
|
35312
35361
|
closeArray?: boolean;
|
|
35362
|
+
/** @internal */
|
|
35313
35363
|
idx: number[];
|
|
35364
|
+
/** @internal */
|
|
35314
35365
|
dashSize: number;
|
|
35366
|
+
/** @internal */
|
|
35315
35367
|
gapSize: number;
|
|
35368
|
+
/** @internal */
|
|
35316
35369
|
path3D: Path3D;
|
|
35370
|
+
/** @internal */
|
|
35317
35371
|
pathArray: Vector3[][];
|
|
35372
|
+
/** @internal */
|
|
35318
35373
|
arc: number;
|
|
35374
|
+
/** @internal */
|
|
35319
35375
|
radius: number;
|
|
35376
|
+
/** @internal */
|
|
35320
35377
|
cap: number;
|
|
35378
|
+
/** @internal */
|
|
35321
35379
|
tessellation: number;
|
|
35322
35380
|
}
|
|
35323
35381
|
/**
|
|
@@ -35333,31 +35391,50 @@ interface IInstanceDataStorageRenderPassVisibleInstances {
|
|
|
35333
35391
|
* @internal
|
|
35334
35392
|
**/
|
|
35335
35393
|
declare class _InstanceDataStorageRenderPass {
|
|
35394
|
+
/** @internal */
|
|
35336
35395
|
visibleInstances: Nullable<IInstanceDataStorageRenderPassVisibleInstances>;
|
|
35396
|
+
/** @internal */
|
|
35337
35397
|
batchCache: _InstancesBatch;
|
|
35398
|
+
/** @internal */
|
|
35338
35399
|
batchCacheReplacementModeInFrozenMode: _InstancesBatch;
|
|
35400
|
+
/** @internal */
|
|
35339
35401
|
instancesBufferSize: number;
|
|
35402
|
+
/** @internal */
|
|
35340
35403
|
instancesBuffer: Nullable<Buffer$1>;
|
|
35404
|
+
/** @internal */
|
|
35341
35405
|
instancesPreviousBuffer: Nullable<Buffer$1>;
|
|
35406
|
+
/** @internal */
|
|
35342
35407
|
instancesData: Float32Array;
|
|
35408
|
+
/** @internal */
|
|
35343
35409
|
instancesPreviousData: Float32Array;
|
|
35410
|
+
/** @internal */
|
|
35344
35411
|
previousBatch: Nullable<_InstancesBatch>;
|
|
35412
|
+
/** @internal */
|
|
35345
35413
|
previousRenderId: number;
|
|
35346
35414
|
}
|
|
35347
35415
|
/**
|
|
35348
35416
|
* @internal
|
|
35349
35417
|
**/
|
|
35350
35418
|
declare class _InstanceDataStorage {
|
|
35419
|
+
/** @internal */
|
|
35351
35420
|
renderPasses: {
|
|
35352
35421
|
[id: number]: _InstanceDataStorageRenderPass;
|
|
35353
35422
|
};
|
|
35423
|
+
/** @internal */
|
|
35354
35424
|
overridenInstanceCount: number;
|
|
35425
|
+
/** @internal */
|
|
35355
35426
|
isFrozen: boolean;
|
|
35427
|
+
/** @internal */
|
|
35356
35428
|
forceMatrixUpdates: boolean;
|
|
35429
|
+
/** @internal */
|
|
35357
35430
|
hardwareInstancedRendering: boolean;
|
|
35431
|
+
/** @internal */
|
|
35358
35432
|
manualUpdate: boolean;
|
|
35433
|
+
/** @internal */
|
|
35359
35434
|
previousManualUpdate: boolean;
|
|
35435
|
+
/** @internal */
|
|
35360
35436
|
masterMeshPreviousWorldMatrix: Nullable<Matrix>;
|
|
35437
|
+
/** @internal */
|
|
35361
35438
|
engine: AbstractEngine;
|
|
35362
35439
|
}
|
|
35363
35440
|
/**
|
|
@@ -35365,24 +35442,38 @@ declare class _InstanceDataStorage {
|
|
|
35365
35442
|
**/
|
|
35366
35443
|
declare class _InstancesBatch {
|
|
35367
35444
|
parent: _InstanceDataStorageRenderPass;
|
|
35445
|
+
/** @internal */
|
|
35368
35446
|
mustReturn: boolean;
|
|
35447
|
+
/** @internal */
|
|
35369
35448
|
visibleInstances: Nullable<InstancedMesh[]>[];
|
|
35449
|
+
/** @internal */
|
|
35370
35450
|
renderSelf: boolean[];
|
|
35451
|
+
/** @internal */
|
|
35371
35452
|
hardwareInstancedRendering: boolean[];
|
|
35453
|
+
/** @internal */
|
|
35372
35454
|
constructor(parent: _InstanceDataStorageRenderPass);
|
|
35373
35455
|
}
|
|
35374
35456
|
/**
|
|
35375
35457
|
* @internal
|
|
35376
35458
|
**/
|
|
35377
35459
|
declare class _ThinInstanceDataStorage {
|
|
35460
|
+
/** @internal */
|
|
35378
35461
|
instancesCount: number;
|
|
35462
|
+
/** @internal */
|
|
35379
35463
|
matrixBuffer: Nullable<Buffer$1>;
|
|
35464
|
+
/** @internal */
|
|
35380
35465
|
previousMatrixBuffer: Nullable<Buffer$1>;
|
|
35466
|
+
/** @internal */
|
|
35381
35467
|
matrixBufferSize: number;
|
|
35468
|
+
/** @internal */
|
|
35382
35469
|
matrixData: Nullable<Float32Array>;
|
|
35470
|
+
/** @internal */
|
|
35383
35471
|
previousMatrixData: Nullable<Float32Array>;
|
|
35472
|
+
/** @internal */
|
|
35384
35473
|
boundingVectors: Array<Vector3>;
|
|
35474
|
+
/** @internal */
|
|
35385
35475
|
worldMatrices: Nullable<Matrix[]>;
|
|
35476
|
+
/** @internal */
|
|
35386
35477
|
masterMeshPreviousWorldMatrix: Nullable<Matrix>;
|
|
35387
35478
|
}
|
|
35388
35479
|
/**
|
|
@@ -35511,7 +35602,9 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
35511
35602
|
* Observers added to this observable will be removed once triggered
|
|
35512
35603
|
*/
|
|
35513
35604
|
onMeshReadyObservable: Observable<Mesh>;
|
|
35605
|
+
/** {@inheritDoc} */
|
|
35514
35606
|
get computeBonesUsingShaders(): boolean;
|
|
35607
|
+
/** {@inheritDoc} */
|
|
35515
35608
|
set computeBonesUsingShaders(value: boolean);
|
|
35516
35609
|
/**
|
|
35517
35610
|
* An event triggered before rendering the mesh
|
|
@@ -35538,7 +35631,9 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
35538
35631
|
* Sets a callback to call before drawing the mesh. It is recommended to use onBeforeDrawObservable instead
|
|
35539
35632
|
*/
|
|
35540
35633
|
set onBeforeDraw(callback: () => void);
|
|
35634
|
+
/** {@inheritDoc} */
|
|
35541
35635
|
get hasInstances(): boolean;
|
|
35636
|
+
/** {@inheritDoc} */
|
|
35542
35637
|
get hasThinInstances(): boolean;
|
|
35543
35638
|
/**
|
|
35544
35639
|
* Gets the delay loading state of the mesh (when delay loading is turned on)
|
|
@@ -35606,7 +35701,9 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
35606
35701
|
*/
|
|
35607
35702
|
get overrideRenderingFillMode(): Nullable<number>;
|
|
35608
35703
|
set overrideRenderingFillMode(fillMode: Nullable<number>);
|
|
35704
|
+
/** {@inheritDoc} */
|
|
35609
35705
|
get material(): Nullable<Material>;
|
|
35706
|
+
/** {@inheritDoc} */
|
|
35610
35707
|
set material(value: Nullable<Material>);
|
|
35611
35708
|
/**
|
|
35612
35709
|
* Gets or sets a boolean indicating whether to render ignoring the active camera's max z setting. (false by default)
|
|
@@ -35666,6 +35763,13 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
35666
35763
|
* @param clonePhysicsImpostor When cloning, include cloning mesh physics impostor, default True.
|
|
35667
35764
|
*/
|
|
35668
35765
|
constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<Mesh>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean);
|
|
35766
|
+
/**
|
|
35767
|
+
* Instantiate (when possible) or clone that node with its hierarchy
|
|
35768
|
+
* @param newParent defines the new parent to use for the instance (or clone)
|
|
35769
|
+
* @param options defines options to configure how copy is done
|
|
35770
|
+
* @param onNewNodeCreated defines an option callback to call when a clone or an instance is created
|
|
35771
|
+
* @returns an instance (or a clone) of the current node with its hierarchy
|
|
35772
|
+
*/
|
|
35669
35773
|
instantiateHierarchy(newParent?: Nullable<TransformNode>, options?: {
|
|
35670
35774
|
doNotInstantiate: boolean | ((node: TransformNode) => boolean);
|
|
35671
35775
|
}, onNewNodeCreated?: (source: TransformNode, clone: TransformNode) => void): Nullable<TransformNode>;
|
|
@@ -35757,9 +35861,33 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
35757
35861
|
* @returns a FloatArray or null if the mesh has no geometry or no vertex buffer for this kind.
|
|
35758
35862
|
*/
|
|
35759
35863
|
getVerticesData(kind: string, copyWhenShared?: boolean, forceCopy?: boolean, bypassInstanceData?: boolean): Nullable<FloatArray>;
|
|
35864
|
+
/**
|
|
35865
|
+
* Copies the requested vertex data kind into the given vertex data map. Float data is constructed if the map doesn't have the data.
|
|
35866
|
+
* @param kind defines the vertex data kind to use
|
|
35867
|
+
* @param vertexData defines the map that stores the resulting data
|
|
35868
|
+
*/
|
|
35760
35869
|
copyVerticesData(kind: string, vertexData: {
|
|
35761
35870
|
[kind: string]: Float32Array;
|
|
35762
35871
|
}): void;
|
|
35872
|
+
/**
|
|
35873
|
+
* Returns the mesh VertexBuffer object from the requested `kind`
|
|
35874
|
+
* @param kind defines which buffer to read from (positions, indices, normals, etc). Possible `kind` values :
|
|
35875
|
+
* - VertexBuffer.PositionKind
|
|
35876
|
+
* - VertexBuffer.NormalKind
|
|
35877
|
+
* - VertexBuffer.UVKind
|
|
35878
|
+
* - VertexBuffer.UV2Kind
|
|
35879
|
+
* - VertexBuffer.UV3Kind
|
|
35880
|
+
* - VertexBuffer.UV4Kind
|
|
35881
|
+
* - VertexBuffer.UV5Kind
|
|
35882
|
+
* - VertexBuffer.UV6Kind
|
|
35883
|
+
* - VertexBuffer.ColorKind
|
|
35884
|
+
* - VertexBuffer.MatricesIndicesKind
|
|
35885
|
+
* - VertexBuffer.MatricesIndicesExtraKind
|
|
35886
|
+
* - VertexBuffer.MatricesWeightsKind
|
|
35887
|
+
* - VertexBuffer.MatricesWeightsExtraKind
|
|
35888
|
+
* @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
|
|
35889
|
+
* @returns a FloatArray or null if the mesh has no vertex buffer for this kind.
|
|
35890
|
+
*/
|
|
35763
35891
|
getVertexBuffer(kind: string, bypassInstanceData?: boolean): Nullable<VertexBuffer>;
|
|
35764
35892
|
/**
|
|
35765
35893
|
* Tests if a specific vertex buffer is associated with this mesh
|
|
@@ -35818,6 +35946,7 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
35818
35946
|
* @returns the indices array or an empty array if the mesh has no geometry
|
|
35819
35947
|
*/
|
|
35820
35948
|
getIndices(copyWhenShared?: boolean, forceCopy?: boolean): Nullable<IndicesArray>;
|
|
35949
|
+
/** {@inheritDoc} */
|
|
35821
35950
|
get isBlocked(): boolean;
|
|
35822
35951
|
/**
|
|
35823
35952
|
* Determine if the current mesh is ready to be rendered
|
|
@@ -36360,7 +36489,7 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
36360
36489
|
* Merge the array of meshes into a single mesh for performance reasons.
|
|
36361
36490
|
* @param meshes array of meshes with the vertices to merge. Entries cannot be empty meshes.
|
|
36362
36491
|
* @param disposeSource when true (default), dispose of the vertices from the source meshes.
|
|
36363
|
-
* @param allow32BitsIndices when the sum of the vertices
|
|
36492
|
+
* @param allow32BitsIndices when the sum of the vertices \> 64k, this must be set to true.
|
|
36364
36493
|
* @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
|
|
36365
36494
|
* @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
|
|
36366
36495
|
* @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
|
|
@@ -36371,7 +36500,7 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
36371
36500
|
* Merge the array of meshes into a single mesh for performance reasons.
|
|
36372
36501
|
* @param meshes array of meshes with the vertices to merge. Entries cannot be empty meshes.
|
|
36373
36502
|
* @param disposeSource when true (default), dispose of the vertices from the source meshes.
|
|
36374
|
-
* @param allow32BitsIndices when the sum of the vertices
|
|
36503
|
+
* @param allow32BitsIndices when the sum of the vertices \> 64k, this must be set to true.
|
|
36375
36504
|
* @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
|
|
36376
36505
|
* @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
|
|
36377
36506
|
* @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
|
|
@@ -36401,133 +36530,133 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
36401
36530
|
/**
|
|
36402
36531
|
* Creates a ribbon mesh.
|
|
36403
36532
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
36404
|
-
* @param
|
|
36405
|
-
* @param
|
|
36406
|
-
* @param
|
|
36407
|
-
* @param
|
|
36408
|
-
* @param
|
|
36409
|
-
* @param
|
|
36410
|
-
* @param
|
|
36411
|
-
* @param
|
|
36412
|
-
* @param
|
|
36533
|
+
* @param _name defines the name of the mesh to create
|
|
36534
|
+
* @param _pathArray is a required array of paths, what are each an array of successive Vector3. The pathArray parameter depicts the ribbon geometry.
|
|
36535
|
+
* @param _closeArray creates a seam between the first and the last paths of the path array (default is false)
|
|
36536
|
+
* @param _closePath creates a seam between the first and the last points of each path of the path array
|
|
36537
|
+
* @param _offset is taken in account only if the `pathArray` is containing a single path
|
|
36538
|
+
* @param _scene defines the hosting scene
|
|
36539
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36540
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36541
|
+
* @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)
|
|
36413
36542
|
* @returns a new Mesh
|
|
36414
36543
|
* @deprecated Please use MeshBuilder instead
|
|
36415
36544
|
*/
|
|
36416
|
-
static CreateRibbon(
|
|
36545
|
+
static CreateRibbon(_name: string, _pathArray: Vector3[][], _closeArray: boolean, _closePath: boolean, _offset: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
36417
36546
|
/**
|
|
36418
36547
|
* Creates a plane polygonal mesh. By default, this is a disc.
|
|
36419
|
-
* @param
|
|
36420
|
-
* @param
|
|
36421
|
-
* @param
|
|
36422
|
-
* @param
|
|
36423
|
-
* @param
|
|
36424
|
-
* @param
|
|
36548
|
+
* @param _name defines the name of the mesh to create
|
|
36549
|
+
* @param _radius sets the radius size (float) of the polygon (default 0.5)
|
|
36550
|
+
* @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
|
|
36551
|
+
* @param _scene defines the hosting scene
|
|
36552
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36553
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36425
36554
|
* @returns a new Mesh
|
|
36426
36555
|
* @deprecated Please use MeshBuilder instead
|
|
36427
36556
|
*/
|
|
36428
|
-
static CreateDisc(
|
|
36557
|
+
static CreateDisc(_name: string, _radius: number, _tessellation: number, _scene: Nullable<Scene>, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
36429
36558
|
/**
|
|
36430
36559
|
* Creates a box mesh.
|
|
36431
|
-
* @param
|
|
36432
|
-
* @param
|
|
36433
|
-
* @param
|
|
36434
|
-
* @param
|
|
36435
|
-
* @param
|
|
36560
|
+
* @param _name defines the name of the mesh to create
|
|
36561
|
+
* @param _size sets the size (float) of each box side (default 1)
|
|
36562
|
+
* @param _scene defines the hosting scene
|
|
36563
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36564
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36436
36565
|
* @returns a new Mesh
|
|
36437
36566
|
* @deprecated Please use MeshBuilder instead
|
|
36438
36567
|
*/
|
|
36439
|
-
static CreateBox(
|
|
36568
|
+
static CreateBox(_name: string, _size: number, _scene: Nullable<Scene>, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
36440
36569
|
/**
|
|
36441
36570
|
* Creates a sphere mesh.
|
|
36442
|
-
* @param
|
|
36443
|
-
* @param
|
|
36444
|
-
* @param
|
|
36445
|
-
* @param
|
|
36446
|
-
* @param
|
|
36447
|
-
* @param
|
|
36571
|
+
* @param _name defines the name of the mesh to create
|
|
36572
|
+
* @param _segments sets the sphere number of horizontal stripes (positive integer, default 32)
|
|
36573
|
+
* @param _diameter sets the diameter size (float) of the sphere (default 1)
|
|
36574
|
+
* @param _scene defines the hosting scene
|
|
36575
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36576
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36448
36577
|
* @returns a new Mesh
|
|
36449
36578
|
* @deprecated Please use MeshBuilder instead
|
|
36450
36579
|
*/
|
|
36451
|
-
static CreateSphere(
|
|
36580
|
+
static CreateSphere(_name: string, _segments: number, _diameter: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
36452
36581
|
/**
|
|
36453
36582
|
* Creates a hemisphere mesh.
|
|
36454
|
-
* @param
|
|
36455
|
-
* @param
|
|
36456
|
-
* @param
|
|
36457
|
-
* @param
|
|
36583
|
+
* @param _name defines the name of the mesh to create
|
|
36584
|
+
* @param _segments sets the sphere number of horizontal stripes (positive integer, default 32)
|
|
36585
|
+
* @param _diameter sets the diameter size (float) of the sphere (default 1)
|
|
36586
|
+
* @param _scene defines the hosting scene
|
|
36458
36587
|
* @returns a new Mesh
|
|
36459
36588
|
* @deprecated Please use MeshBuilder instead
|
|
36460
36589
|
*/
|
|
36461
|
-
static CreateHemisphere(
|
|
36590
|
+
static CreateHemisphere(_name: string, _segments: number, _diameter: number, _scene?: Scene): Mesh;
|
|
36462
36591
|
/**
|
|
36463
36592
|
* Creates a cylinder or a cone mesh.
|
|
36464
|
-
* @param
|
|
36465
|
-
* @param
|
|
36466
|
-
* @param
|
|
36467
|
-
* @param
|
|
36468
|
-
* @param
|
|
36469
|
-
* @param
|
|
36470
|
-
* @param
|
|
36471
|
-
* @param
|
|
36472
|
-
* @param
|
|
36593
|
+
* @param _name defines the name of the mesh to create
|
|
36594
|
+
* @param _height sets the height size (float) of the cylinder/cone (float, default 2)
|
|
36595
|
+
* @param _diameterTop set the top cap diameter (floats, default 1)
|
|
36596
|
+
* @param _diameterBottom set the bottom cap diameter (floats, default 1). This value can't be zero
|
|
36597
|
+
* @param _tessellation sets the number of cylinder sides (positive integer, default 24). Set it to 3 to get a prism for instance
|
|
36598
|
+
* @param _subdivisions sets the number of rings along the cylinder height (positive integer, default 1)
|
|
36599
|
+
* @param _scene defines the hosting scene
|
|
36600
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36601
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36473
36602
|
* @returns a new Mesh
|
|
36474
36603
|
* @deprecated Please use MeshBuilder instead
|
|
36475
36604
|
*/
|
|
36476
|
-
static CreateCylinder(
|
|
36605
|
+
static CreateCylinder(_name: string, _height: number, _diameterTop: number, _diameterBottom: number, _tessellation: number, _subdivisions: any, _scene?: Scene, _updatable?: any, _sideOrientation?: number): Mesh;
|
|
36477
36606
|
/**
|
|
36478
36607
|
* Creates a torus mesh.
|
|
36479
|
-
* @param
|
|
36480
|
-
* @param
|
|
36481
|
-
* @param
|
|
36482
|
-
* @param
|
|
36483
|
-
* @param
|
|
36484
|
-
* @param
|
|
36485
|
-
* @param
|
|
36608
|
+
* @param _name defines the name of the mesh to create
|
|
36609
|
+
* @param _diameter sets the diameter size (float) of the torus (default 1)
|
|
36610
|
+
* @param _thickness sets the diameter size of the tube of the torus (float, default 0.5)
|
|
36611
|
+
* @param _tessellation sets the number of torus sides (positive integer, default 16)
|
|
36612
|
+
* @param _scene defines the hosting scene
|
|
36613
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36614
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36486
36615
|
* @returns a new Mesh
|
|
36487
36616
|
* @deprecated Please use MeshBuilder instead
|
|
36488
36617
|
*/
|
|
36489
|
-
static CreateTorus(
|
|
36618
|
+
static CreateTorus(_name: string, _diameter: number, _thickness: number, _tessellation: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
36490
36619
|
/**
|
|
36491
36620
|
* Creates a torus knot mesh.
|
|
36492
|
-
* @param
|
|
36493
|
-
* @param
|
|
36494
|
-
* @param
|
|
36495
|
-
* @param
|
|
36496
|
-
* @param
|
|
36497
|
-
* @param
|
|
36498
|
-
* @param
|
|
36499
|
-
* @param
|
|
36500
|
-
* @param
|
|
36501
|
-
* @param
|
|
36621
|
+
* @param _name defines the name of the mesh to create
|
|
36622
|
+
* @param _radius sets the global radius size (float) of the torus knot (default 2)
|
|
36623
|
+
* @param _tube sets the diameter size of the tube of the torus (float, default 0.5)
|
|
36624
|
+
* @param _radialSegments sets the number of sides on each tube segments (positive integer, default 32)
|
|
36625
|
+
* @param _tubularSegments sets the number of tubes to decompose the knot into (positive integer, default 32)
|
|
36626
|
+
* @param _p the number of windings on X axis (positive integers, default 2)
|
|
36627
|
+
* @param _q the number of windings on Y axis (positive integers, default 3)
|
|
36628
|
+
* @param _scene defines the hosting scene
|
|
36629
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36630
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36502
36631
|
* @returns a new Mesh
|
|
36503
36632
|
* @deprecated Please use MeshBuilder instead
|
|
36504
36633
|
*/
|
|
36505
|
-
static CreateTorusKnot(
|
|
36634
|
+
static CreateTorusKnot(_name: string, _radius: number, _tube: number, _radialSegments: number, _tubularSegments: number, _p: number, _q: number, _scene?: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
36506
36635
|
/**
|
|
36507
36636
|
* Creates a line mesh..
|
|
36508
|
-
* @param
|
|
36509
|
-
* @param
|
|
36510
|
-
* @param
|
|
36511
|
-
* @param
|
|
36512
|
-
* @param
|
|
36637
|
+
* @param _name defines the name of the mesh to create
|
|
36638
|
+
* @param _points is an array successive Vector3
|
|
36639
|
+
* @param _scene defines the hosting scene
|
|
36640
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36641
|
+
* @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).
|
|
36513
36642
|
* @returns a new Mesh
|
|
36514
36643
|
* @deprecated Please use MeshBuilder instead
|
|
36515
36644
|
*/
|
|
36516
|
-
static CreateLines(
|
|
36645
|
+
static CreateLines(_name: string, _points: Vector3[], _scene: Nullable<Scene>, _updatable: boolean, _instance?: Nullable<LinesMesh>): LinesMesh;
|
|
36517
36646
|
/**
|
|
36518
36647
|
* Creates a dashed line mesh.
|
|
36519
|
-
* @param
|
|
36520
|
-
* @param
|
|
36521
|
-
* @param
|
|
36522
|
-
* @param
|
|
36523
|
-
* @param
|
|
36524
|
-
* @param
|
|
36525
|
-
* @param
|
|
36526
|
-
* @param
|
|
36648
|
+
* @param _name defines the name of the mesh to create
|
|
36649
|
+
* @param _points is an array successive Vector3
|
|
36650
|
+
* @param _dashSize is the size of the dashes relatively the dash number (positive float, default 3)
|
|
36651
|
+
* @param _gapSize is the size of the gap between two successive dashes relatively the dash number (positive float, default 1)
|
|
36652
|
+
* @param _dashNb is the intended total number of dashes (positive integer, default 200)
|
|
36653
|
+
* @param _scene defines the hosting scene
|
|
36654
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36655
|
+
* @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)
|
|
36527
36656
|
* @returns a new Mesh
|
|
36528
36657
|
* @deprecated Please use MeshBuilder instead
|
|
36529
36658
|
*/
|
|
36530
|
-
static CreateDashedLines(
|
|
36659
|
+
static CreateDashedLines(_name: string, _points: Vector3[], _dashSize: number, _gapSize: number, _dashNb: number, _scene: Nullable<Scene>, _updatable?: boolean, _instance?: LinesMesh): LinesMesh;
|
|
36531
36660
|
/**
|
|
36532
36661
|
* Creates a polygon mesh.Please consider using the same method from the MeshBuilder class instead
|
|
36533
36662
|
* The polygon's shape will depend on the input parameters and is constructed parallel to a ground mesh.
|
|
@@ -36536,175 +36665,175 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
36536
36665
|
* The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created.
|
|
36537
36666
|
* Remember you can only change the shape positions, not their number when updating a polygon.
|
|
36538
36667
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#non-regular-polygon
|
|
36539
|
-
* @param
|
|
36540
|
-
* @param
|
|
36541
|
-
* @param
|
|
36542
|
-
* @param
|
|
36543
|
-
* @param
|
|
36544
|
-
* @param
|
|
36545
|
-
* @param
|
|
36668
|
+
* @param _name defines the name of the mesh to create
|
|
36669
|
+
* @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
|
|
36670
|
+
* @param _scene defines the hosting scene
|
|
36671
|
+
* @param _holes is a required array of arrays of successive Vector3 used to defines holes in the polygon
|
|
36672
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36673
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36674
|
+
* @param _earcutInjection can be used to inject your own earcut reference
|
|
36546
36675
|
* @returns a new Mesh
|
|
36547
36676
|
* @deprecated Please use MeshBuilder instead
|
|
36548
36677
|
*/
|
|
36549
|
-
static CreatePolygon(
|
|
36678
|
+
static CreatePolygon(_name: string, _shape: Vector3[], _scene: Scene, _holes?: Vector3[][], _updatable?: boolean, _sideOrientation?: number, _earcutInjection?: any): Mesh;
|
|
36550
36679
|
/**
|
|
36551
36680
|
* Creates an extruded polygon mesh, with depth in the Y direction..
|
|
36552
36681
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-non-regular-polygon
|
|
36553
|
-
* @param
|
|
36554
|
-
* @param
|
|
36555
|
-
* @param
|
|
36556
|
-
* @param
|
|
36557
|
-
* @param
|
|
36558
|
-
* @param
|
|
36559
|
-
* @param
|
|
36560
|
-
* @param
|
|
36682
|
+
* @param _name defines the name of the mesh to create
|
|
36683
|
+
* @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
|
|
36684
|
+
* @param _depth defines the height of extrusion
|
|
36685
|
+
* @param _scene defines the hosting scene
|
|
36686
|
+
* @param _holes is a required array of arrays of successive Vector3 used to defines holes in the polygon
|
|
36687
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36688
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36689
|
+
* @param _earcutInjection can be used to inject your own earcut reference
|
|
36561
36690
|
* @returns a new Mesh
|
|
36562
36691
|
* @deprecated Please use MeshBuilder instead
|
|
36563
36692
|
*/
|
|
36564
|
-
static ExtrudePolygon(
|
|
36693
|
+
static ExtrudePolygon(_name: string, _shape: Vector3[], _depth: number, _scene: Scene, _holes?: Vector3[][], _updatable?: boolean, _sideOrientation?: number, _earcutInjection?: any): Mesh;
|
|
36565
36694
|
/**
|
|
36566
36695
|
* Creates an extruded shape mesh.
|
|
36567
36696
|
* The extrusion is a parametric shape. It has no predefined shape. Its final shape will depend on the input parameters.
|
|
36568
36697
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
36569
36698
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-shapes
|
|
36570
|
-
* @param
|
|
36571
|
-
* @param
|
|
36572
|
-
* @param
|
|
36573
|
-
* @param
|
|
36574
|
-
* @param
|
|
36575
|
-
* @param
|
|
36576
|
-
* @param
|
|
36577
|
-
* @param
|
|
36578
|
-
* @param
|
|
36579
|
-
* @param
|
|
36699
|
+
* @param _name defines the name of the mesh to create
|
|
36700
|
+
* @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
|
|
36701
|
+
* @param _path is a required array of successive Vector3. This is the axis curve the shape is extruded along
|
|
36702
|
+
* @param _scale is the value to scale the shape
|
|
36703
|
+
* @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
|
|
36704
|
+
* @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
|
|
36705
|
+
* @param _scene defines the hosting scene
|
|
36706
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36707
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36708
|
+
* @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)
|
|
36580
36709
|
* @returns a new Mesh
|
|
36581
36710
|
* @deprecated Please use MeshBuilder instead
|
|
36582
36711
|
*/
|
|
36583
|
-
static ExtrudeShape(
|
|
36712
|
+
static ExtrudeShape(_name: string, _shape: Vector3[], _path: Vector3[], _scale: number, _rotation: number, _cap: number, _scene: Nullable<Scene>, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
36584
36713
|
/**
|
|
36585
36714
|
* Creates an custom extruded shape mesh.
|
|
36586
36715
|
* The custom extrusion is a parametric shape.
|
|
36587
36716
|
* It has no predefined shape. Its final shape will depend on the input parameters.
|
|
36588
36717
|
*
|
|
36589
36718
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param#extruded-shapes
|
|
36590
|
-
* @param
|
|
36591
|
-
* @param
|
|
36592
|
-
* @param
|
|
36593
|
-
* @param
|
|
36594
|
-
* @param
|
|
36595
|
-
* @param
|
|
36596
|
-
* @param
|
|
36597
|
-
* @param
|
|
36598
|
-
* @param
|
|
36599
|
-
* @param
|
|
36600
|
-
* @param
|
|
36601
|
-
* @param
|
|
36719
|
+
* @param _name defines the name of the mesh to create
|
|
36720
|
+
* @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
|
|
36721
|
+
* @param _path is a required array of successive Vector3. This is the axis curve the shape is extruded along
|
|
36722
|
+
* @param _scaleFunction is a custom Javascript function called on each path point
|
|
36723
|
+
* @param _rotationFunction is a custom Javascript function called on each path point
|
|
36724
|
+
* @param _ribbonCloseArray forces the extrusion underlying ribbon to close all the paths in its `pathArray`
|
|
36725
|
+
* @param _ribbonClosePath forces the extrusion underlying ribbon to close its `pathArray`
|
|
36726
|
+
* @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
|
|
36727
|
+
* @param _scene defines the hosting scene
|
|
36728
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36729
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36730
|
+
* @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)
|
|
36602
36731
|
* @returns a new Mesh
|
|
36603
36732
|
* @deprecated Please use MeshBuilder instead
|
|
36604
36733
|
*/
|
|
36605
|
-
static ExtrudeShapeCustom(
|
|
36734
|
+
static ExtrudeShapeCustom(_name: string, _shape: Vector3[], _path: Vector3[], _scaleFunction: Nullable<{
|
|
36606
36735
|
(i: number, distance: number): number;
|
|
36607
|
-
}>,
|
|
36736
|
+
}>, _rotationFunction: Nullable<{
|
|
36608
36737
|
(i: number, distance: number): number;
|
|
36609
|
-
}>,
|
|
36738
|
+
}>, _ribbonCloseArray: boolean, _ribbonClosePath: boolean, _cap: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
36610
36739
|
/**
|
|
36611
36740
|
* Creates lathe mesh.
|
|
36612
36741
|
* The lathe is a shape with a symmetry axis : a 2D model shape is rotated around this axis to design the lathe.
|
|
36613
|
-
* @param
|
|
36614
|
-
* @param
|
|
36615
|
-
* @param
|
|
36616
|
-
* @param
|
|
36617
|
-
* @param
|
|
36618
|
-
* @param
|
|
36619
|
-
* @param
|
|
36742
|
+
* @param _name defines the name of the mesh to create
|
|
36743
|
+
* @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
|
|
36744
|
+
* @param _radius is the radius value of the lathe
|
|
36745
|
+
* @param _tessellation is the side number of the lathe.
|
|
36746
|
+
* @param _scene defines the hosting scene
|
|
36747
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36748
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36620
36749
|
* @returns a new Mesh
|
|
36621
36750
|
* @deprecated Please use MeshBuilder instead
|
|
36622
36751
|
*/
|
|
36623
|
-
static CreateLathe(
|
|
36752
|
+
static CreateLathe(_name: string, _shape: Vector3[], _radius: number, _tessellation: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
36624
36753
|
/**
|
|
36625
36754
|
* Creates a plane mesh.
|
|
36626
|
-
* @param
|
|
36627
|
-
* @param
|
|
36628
|
-
* @param
|
|
36629
|
-
* @param
|
|
36630
|
-
* @param
|
|
36755
|
+
* @param _name defines the name of the mesh to create
|
|
36756
|
+
* @param _size sets the size (float) of both sides of the plane at once (default 1)
|
|
36757
|
+
* @param _scene defines the hosting scene
|
|
36758
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36759
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36631
36760
|
* @returns a new Mesh
|
|
36632
36761
|
* @deprecated Please use MeshBuilder instead
|
|
36633
36762
|
*/
|
|
36634
|
-
static CreatePlane(
|
|
36763
|
+
static CreatePlane(_name: string, _size: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number): Mesh;
|
|
36635
36764
|
/**
|
|
36636
36765
|
* Creates a ground mesh.
|
|
36637
|
-
* @param
|
|
36638
|
-
* @param
|
|
36639
|
-
* @param
|
|
36640
|
-
* @param
|
|
36641
|
-
* @param
|
|
36642
|
-
* @param
|
|
36766
|
+
* @param _name defines the name of the mesh to create
|
|
36767
|
+
* @param _width set the width of the ground
|
|
36768
|
+
* @param _height set the height of the ground
|
|
36769
|
+
* @param _subdivisions sets the number of subdivisions per side
|
|
36770
|
+
* @param _scene defines the hosting scene
|
|
36771
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36643
36772
|
* @returns a new Mesh
|
|
36644
36773
|
* @deprecated Please use MeshBuilder instead
|
|
36645
36774
|
*/
|
|
36646
|
-
static CreateGround(
|
|
36775
|
+
static CreateGround(_name: string, _width: number, _height: number, _subdivisions: number, _scene?: Scene, _updatable?: boolean): Mesh;
|
|
36647
36776
|
/**
|
|
36648
36777
|
* Creates a tiled ground mesh.
|
|
36649
|
-
* @param
|
|
36650
|
-
* @param
|
|
36651
|
-
* @param
|
|
36652
|
-
* @param
|
|
36653
|
-
* @param
|
|
36654
|
-
* @param
|
|
36655
|
-
* @param
|
|
36656
|
-
* @param
|
|
36657
|
-
* @param
|
|
36778
|
+
* @param _name defines the name of the mesh to create
|
|
36779
|
+
* @param _xmin set the ground minimum X coordinate
|
|
36780
|
+
* @param _zmin set the ground minimum Y coordinate
|
|
36781
|
+
* @param _xmax set the ground maximum X coordinate
|
|
36782
|
+
* @param _zmax set the ground maximum Z coordinate
|
|
36783
|
+
* @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
|
|
36784
|
+
* @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
|
|
36785
|
+
* @param _scene defines the hosting scene
|
|
36786
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36658
36787
|
* @returns a new Mesh
|
|
36659
36788
|
* @deprecated Please use MeshBuilder instead
|
|
36660
36789
|
*/
|
|
36661
|
-
static CreateTiledGround(
|
|
36790
|
+
static CreateTiledGround(_name: string, _xmin: number, _zmin: number, _xmax: number, _zmax: number, _subdivisions: {
|
|
36662
36791
|
w: number;
|
|
36663
36792
|
h: number;
|
|
36664
|
-
},
|
|
36793
|
+
}, _precision: {
|
|
36665
36794
|
w: number;
|
|
36666
36795
|
h: number;
|
|
36667
|
-
},
|
|
36796
|
+
}, _scene: Scene, _updatable?: boolean): Mesh;
|
|
36668
36797
|
/**
|
|
36669
36798
|
* Creates a ground mesh from a height map.
|
|
36670
36799
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set/height_map
|
|
36671
|
-
* @param
|
|
36672
|
-
* @param
|
|
36673
|
-
* @param
|
|
36674
|
-
* @param
|
|
36675
|
-
* @param
|
|
36676
|
-
* @param
|
|
36677
|
-
* @param
|
|
36678
|
-
* @param
|
|
36679
|
-
* @param
|
|
36680
|
-
* @param
|
|
36681
|
-
* @param
|
|
36800
|
+
* @param _name defines the name of the mesh to create
|
|
36801
|
+
* @param _url sets the URL of the height map image resource
|
|
36802
|
+
* @param _width set the ground width size
|
|
36803
|
+
* @param _height set the ground height size
|
|
36804
|
+
* @param _subdivisions sets the number of subdivision per side
|
|
36805
|
+
* @param _minHeight is the minimum altitude on the ground
|
|
36806
|
+
* @param _maxHeight is the maximum altitude on the ground
|
|
36807
|
+
* @param _scene defines the hosting scene
|
|
36808
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36809
|
+
* @param _onReady is a callback function that will be called once the mesh is built (the height map download can last some time)
|
|
36810
|
+
* @param _alphaFilter will filter any data where the alpha channel is below this value, defaults 0 (all data visible)
|
|
36682
36811
|
* @returns a new Mesh
|
|
36683
36812
|
* @deprecated Please use MeshBuilder instead
|
|
36684
36813
|
*/
|
|
36685
|
-
static CreateGroundFromHeightMap(
|
|
36814
|
+
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;
|
|
36686
36815
|
/**
|
|
36687
36816
|
* Creates a tube mesh.
|
|
36688
36817
|
* The tube is a parametric shape.
|
|
36689
36818
|
* It has no predefined shape. Its final shape will depend on the input parameters.
|
|
36690
36819
|
*
|
|
36691
36820
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param
|
|
36692
|
-
* @param
|
|
36693
|
-
* @param
|
|
36694
|
-
* @param
|
|
36695
|
-
* @param
|
|
36696
|
-
* @param
|
|
36697
|
-
* @param
|
|
36698
|
-
* @param
|
|
36699
|
-
* @param
|
|
36700
|
-
* @param
|
|
36701
|
-
* @param
|
|
36821
|
+
* @param _name defines the name of the mesh to create
|
|
36822
|
+
* @param _path is a required array of successive Vector3. It is the curve used as the axis of the tube
|
|
36823
|
+
* @param _radius sets the tube radius size
|
|
36824
|
+
* @param _tessellation is the number of sides on the tubular surface
|
|
36825
|
+
* @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
|
|
36826
|
+
* @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
|
|
36827
|
+
* @param _scene defines the hosting scene
|
|
36828
|
+
* @param _updatable defines if the mesh must be flagged as updatable
|
|
36829
|
+
* @param _sideOrientation defines the mesh side orientation (https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientation)
|
|
36830
|
+
* @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)
|
|
36702
36831
|
* @returns a new Mesh
|
|
36703
36832
|
* @deprecated Please use MeshBuilder instead
|
|
36704
36833
|
*/
|
|
36705
|
-
static CreateTube(
|
|
36834
|
+
static CreateTube(_name: string, _path: Vector3[], _radius: number, _tessellation: number, _radiusFunction: {
|
|
36706
36835
|
(i: number, distance: number): number;
|
|
36707
|
-
},
|
|
36836
|
+
}, _cap: number, _scene: Scene, _updatable?: boolean, _sideOrientation?: number, _instance?: Mesh): Mesh;
|
|
36708
36837
|
/**
|
|
36709
36838
|
* Creates a polyhedron mesh.
|
|
36710
36839
|
*.
|
|
@@ -36719,13 +36848,13 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
36719
36848
|
* * You can also set the mesh side orientation with the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
|
|
36720
36849
|
* * 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
|
|
36721
36850
|
* * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created
|
|
36722
|
-
* @param
|
|
36723
|
-
* @param
|
|
36724
|
-
* @param
|
|
36851
|
+
* @param _name defines the name of the mesh to create
|
|
36852
|
+
* @param _options defines the options used to create the mesh
|
|
36853
|
+
* @param _scene defines the hosting scene
|
|
36725
36854
|
* @returns a new Mesh
|
|
36726
36855
|
* @deprecated Please use MeshBuilder instead
|
|
36727
36856
|
*/
|
|
36728
|
-
static CreatePolyhedron(
|
|
36857
|
+
static CreatePolyhedron(_name: string, _options: {
|
|
36729
36858
|
type?: number;
|
|
36730
36859
|
size?: number;
|
|
36731
36860
|
sizeX?: number;
|
|
@@ -36736,7 +36865,7 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
36736
36865
|
faceColors?: Color4[];
|
|
36737
36866
|
updatable?: boolean;
|
|
36738
36867
|
sideOrientation?: number;
|
|
36739
|
-
},
|
|
36868
|
+
}, _scene: Scene): Mesh;
|
|
36740
36869
|
/**
|
|
36741
36870
|
* Creates a sphere based upon an icosahedron with 20 triangular faces which can be subdivided
|
|
36742
36871
|
* * The parameter `radius` sets the radius size (float) of the icosphere (default 1)
|
|
@@ -36747,50 +36876,50 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
36747
36876
|
* * 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
|
|
36748
36877
|
* * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created
|
|
36749
36878
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/polyhedra#icosphere
|
|
36750
|
-
* @param
|
|
36751
|
-
* @param
|
|
36752
|
-
* @param
|
|
36879
|
+
* @param _name defines the name of the mesh
|
|
36880
|
+
* @param _options defines the options used to create the mesh
|
|
36881
|
+
* @param _scene defines the hosting scene
|
|
36753
36882
|
* @returns a new Mesh
|
|
36754
36883
|
* @deprecated Please use MeshBuilder instead
|
|
36755
36884
|
*/
|
|
36756
|
-
static CreateIcoSphere(
|
|
36885
|
+
static CreateIcoSphere(_name: string, _options: {
|
|
36757
36886
|
radius?: number;
|
|
36758
36887
|
flat?: boolean;
|
|
36759
36888
|
subdivisions?: number;
|
|
36760
36889
|
sideOrientation?: number;
|
|
36761
36890
|
updatable?: boolean;
|
|
36762
|
-
},
|
|
36891
|
+
}, _scene: Scene): Mesh;
|
|
36763
36892
|
/**
|
|
36764
36893
|
* Creates a decal mesh.
|
|
36765
36894
|
*.
|
|
36766
36895
|
* A decal is a mesh usually applied as a model onto the surface of another mesh
|
|
36767
|
-
* @param
|
|
36768
|
-
* @param
|
|
36769
|
-
* @param
|
|
36770
|
-
* @param
|
|
36771
|
-
* @param
|
|
36772
|
-
* @param
|
|
36896
|
+
* @param _name defines the name of the mesh
|
|
36897
|
+
* @param _sourceMesh defines the mesh receiving the decal
|
|
36898
|
+
* @param _position sets the position of the decal in world coordinates
|
|
36899
|
+
* @param _normal sets the normal of the mesh where the decal is applied onto in world coordinates
|
|
36900
|
+
* @param _size sets the decal scaling
|
|
36901
|
+
* @param _angle sets the angle to rotate the decal
|
|
36773
36902
|
* @returns a new Mesh
|
|
36774
36903
|
* @deprecated Please use MeshBuilder instead
|
|
36775
36904
|
*/
|
|
36776
|
-
static CreateDecal(
|
|
36905
|
+
static CreateDecal(_name: string, _sourceMesh: AbstractMesh, _position: Vector3, _normal: Vector3, _size: Vector3, _angle: number): Mesh;
|
|
36777
36906
|
/** Creates a Capsule Mesh
|
|
36778
|
-
* @param
|
|
36779
|
-
* @param
|
|
36780
|
-
* @param
|
|
36907
|
+
* @param _name defines the name of the mesh.
|
|
36908
|
+
* @param _options the constructors options used to shape the mesh.
|
|
36909
|
+
* @param _scene defines the scene the mesh is scoped to.
|
|
36781
36910
|
* @returns the capsule mesh
|
|
36782
36911
|
* @see https://doc.babylonjs.com/how_to/capsule_shape
|
|
36783
36912
|
* @deprecated Please use MeshBuilder instead
|
|
36784
36913
|
*/
|
|
36785
|
-
static CreateCapsule(
|
|
36914
|
+
static CreateCapsule(_name: string, _options: ICreateCapsuleOptions, _scene: Scene): Mesh;
|
|
36786
36915
|
/**
|
|
36787
36916
|
* Extends a mesh to a Goldberg mesh
|
|
36788
36917
|
* Warning the mesh to convert MUST be an import of a perviously exported Goldberg mesh
|
|
36789
|
-
* @param
|
|
36918
|
+
* @param _mesh the mesh to convert
|
|
36790
36919
|
* @returns the extended mesh
|
|
36791
36920
|
* @deprecated Please use ExtendMeshToGoldberg instead
|
|
36792
36921
|
*/
|
|
36793
|
-
static ExtendToGoldberg(
|
|
36922
|
+
static ExtendToGoldberg(_mesh: Mesh): Mesh;
|
|
36794
36923
|
}
|
|
36795
36924
|
|
|
36796
36925
|
/**
|
|
@@ -37219,22 +37348,18 @@ declare class VertexData implements IVertexDataLike {
|
|
|
37219
37348
|
/**
|
|
37220
37349
|
* Creates the VertexData for a tiled box
|
|
37221
37350
|
* @param options an object used to set the following optional parameters for the box, required but can be empty
|
|
37222
|
-
*
|
|
37223
|
-
*
|
|
37224
|
-
*
|
|
37225
|
-
*
|
|
37226
|
-
*
|
|
37227
|
-
*
|
|
37228
|
-
*
|
|
37229
|
-
*
|
|
37230
|
-
*
|
|
37231
|
-
*
|
|
37232
|
-
*
|
|
37233
|
-
*
|
|
37234
|
-
* @param options.alignVertical
|
|
37235
|
-
* @param options.faceUV
|
|
37236
|
-
* @param options.faceColors
|
|
37237
|
-
* @param options.sideOrientation
|
|
37351
|
+
* - `pattern` sets the pattern
|
|
37352
|
+
* - `width` sets the width
|
|
37353
|
+
* - `height` sets the height
|
|
37354
|
+
* - `depth` sets the depth
|
|
37355
|
+
* - `tileSize` sets the tile size
|
|
37356
|
+
* - `tileWidth` sets the tile width
|
|
37357
|
+
* - `tileHeight` sets the tile height
|
|
37358
|
+
* - `alignHorizontal` sets the horizontal alignment
|
|
37359
|
+
* - `alignVertical` sets the vertical alignment
|
|
37360
|
+
* - `faceUV` an array of 6 Vector4 elements used to set different images to each box side
|
|
37361
|
+
* - `faceColors` an array of 6 Color3 elements used to set different colors to each box side
|
|
37362
|
+
* - `sideOrientation` optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
|
|
37238
37363
|
* @returns the VertexData of the box
|
|
37239
37364
|
* @deprecated Please use CreateTiledBoxVertexData instead
|
|
37240
37365
|
*/
|
|
@@ -37315,7 +37440,7 @@ declare class VertexData implements IVertexDataLike {
|
|
|
37315
37440
|
* * diameterBottom sets the diameter of the bottom of the cone, overwrites diameter, optional, default diameter
|
|
37316
37441
|
* * diameter sets the diameter of the top and bottom of the cone, optional default 1
|
|
37317
37442
|
* * tessellation the number of prism sides, 3 for a triangular prism, optional, default 24
|
|
37318
|
-
* * subdivisions` the number of rings along the cylinder height, optional, default 1
|
|
37443
|
+
* * `subdivisions` the number of rings along the cylinder height, optional, default 1
|
|
37319
37444
|
* * arc a number from 0 to 1, to create an unclosed cylinder based on the fraction of the circumference given by the arc value, optional, default 1
|
|
37320
37445
|
* * faceColors an array of Color3 elements used to set different colors to the top, rings and bottom respectively
|
|
37321
37446
|
* * faceUV an array of Vector4 elements used to set different images to the top, rings and bottom respectively
|
|
@@ -37414,8 +37539,8 @@ declare class VertexData implements IVertexDataLike {
|
|
|
37414
37539
|
* * zmin the ground minimum Z coordinate, optional, default -1
|
|
37415
37540
|
* * xmax the ground maximum X coordinate, optional, default 1
|
|
37416
37541
|
* * zmax the ground maximum Z coordinate, optional, default 1
|
|
37417
|
-
* * subdivisions a javascript object {w: positive integer, h: positive integer}
|
|
37418
|
-
* * precision a javascript object {w: positive integer, h: positive integer}
|
|
37542
|
+
* * subdivisions a javascript object `\{w: positive integer, h: positive integer\}`, `w` and `h` are the numbers of subdivisions on the ground width and height creating 'tiles', default `\{w: 6, h: 6\}`
|
|
37543
|
+
* * precision a javascript object `\{w: positive integer, h: positive integer\}`, `w` and `h` are the numbers of subdivisions on the tile width and height, default `\{w: 2, h: 2\}`
|
|
37419
37544
|
* @returns the VertexData of the TiledGround
|
|
37420
37545
|
* @deprecated use CreateTiledGroundVertexData instead
|
|
37421
37546
|
*/
|
|
@@ -38892,6 +39017,7 @@ declare class _FacetDataStorage {
|
|
|
38892
39017
|
Y: number;
|
|
38893
39018
|
Z: number;
|
|
38894
39019
|
};
|
|
39020
|
+
/** @internal */
|
|
38895
39021
|
facetDepthSort: boolean;
|
|
38896
39022
|
facetDepthSortEnabled: boolean;
|
|
38897
39023
|
depthSortedIndices: IndicesArray;
|
|
@@ -45524,6 +45650,7 @@ declare class WebXRMeshDetector extends WebXRAbstractFeature {
|
|
|
45524
45650
|
}
|
|
45525
45651
|
|
|
45526
45652
|
declare module "./subMesh" {
|
|
45653
|
+
/** @internal */
|
|
45527
45654
|
interface SubMesh {
|
|
45528
45655
|
/** @internal */
|
|
45529
45656
|
_projectOnTrianglesToRef(vector: Vector3, positions: Vector3[], indices: IndicesArray, step: number, checkStopper: boolean, ref: Vector3): number;
|
|
@@ -55550,6 +55677,7 @@ declare module "../scene" {
|
|
|
55550
55677
|
}
|
|
55551
55678
|
|
|
55552
55679
|
declare module "./mesh" {
|
|
55680
|
+
/** @internal */
|
|
55553
55681
|
interface Mesh {
|
|
55554
55682
|
/**
|
|
55555
55683
|
* Gets or sets a boolean defining if we want picking to pick thin instances as well
|
|
@@ -55643,15 +55771,19 @@ declare module "./mesh" {
|
|
|
55643
55771
|
_thinInstanceRecreateBuffer(kind: string, staticBuffer?: boolean): void;
|
|
55644
55772
|
/** @internal */
|
|
55645
55773
|
_userThinInstanceBuffersStorage: {
|
|
55774
|
+
/** @internal */
|
|
55646
55775
|
data: {
|
|
55647
55776
|
[key: string]: Float32Array;
|
|
55648
55777
|
};
|
|
55778
|
+
/** @internal */
|
|
55649
55779
|
sizes: {
|
|
55650
55780
|
[key: string]: number;
|
|
55651
55781
|
};
|
|
55782
|
+
/** @internal */
|
|
55652
55783
|
vertexBuffers: {
|
|
55653
55784
|
[key: string]: Nullable<VertexBuffer>;
|
|
55654
55785
|
};
|
|
55786
|
+
/** @internal */
|
|
55655
55787
|
strides: {
|
|
55656
55788
|
[key: string]: number;
|
|
55657
55789
|
};
|
|
@@ -55660,6 +55792,7 @@ declare module "./mesh" {
|
|
|
55660
55792
|
}
|
|
55661
55793
|
|
|
55662
55794
|
declare module "../scene" {
|
|
55795
|
+
/** @internal */
|
|
55663
55796
|
interface Scene {
|
|
55664
55797
|
/** @internal */
|
|
55665
55798
|
_meshUVSpaceRendererShader: Nullable<ShaderMaterial>;
|
|
@@ -55771,6 +55904,7 @@ declare class MeshUVSpaceRenderer {
|
|
|
55771
55904
|
}
|
|
55772
55905
|
|
|
55773
55906
|
declare module "./abstractMesh" {
|
|
55907
|
+
/** @internal */
|
|
55774
55908
|
interface AbstractMesh {
|
|
55775
55909
|
/** @internal */
|
|
55776
55910
|
_decalMap: Nullable<MeshUVSpaceRenderer>;
|
|
@@ -55866,6 +56000,7 @@ declare const enum SimplificationType {
|
|
|
55866
56000
|
}
|
|
55867
56001
|
|
|
55868
56002
|
declare module "../scene" {
|
|
56003
|
+
/** @internal */
|
|
55869
56004
|
interface Scene {
|
|
55870
56005
|
/** @internal (Backing field) */
|
|
55871
56006
|
_simplificationQueue: SimplificationQueue;
|
|
@@ -55877,6 +56012,7 @@ declare module "../scene" {
|
|
|
55877
56012
|
}
|
|
55878
56013
|
}
|
|
55879
56014
|
declare module "../Meshes/mesh" {
|
|
56015
|
+
/** @internal */
|
|
55880
56016
|
interface Mesh {
|
|
55881
56017
|
/**
|
|
55882
56018
|
* Simplify the mesh according to the given array of settings.
|
|
@@ -63248,6 +63384,7 @@ declare class TransformNode extends Node {
|
|
|
63248
63384
|
* An event triggered after the world matrix is updated
|
|
63249
63385
|
*/
|
|
63250
63386
|
onAfterWorldMatrixUpdateObservable: Observable<TransformNode>;
|
|
63387
|
+
/** @internal */
|
|
63251
63388
|
constructor(name: string, scene?: Nullable<Scene>, isPure?: boolean);
|
|
63252
63389
|
/**
|
|
63253
63390
|
* Gets a string identifying the name of the class
|
|
@@ -63355,7 +63492,6 @@ declare class TransformNode extends Node {
|
|
|
63355
63492
|
* Instantiate (when possible) or clone that node with its hierarchy
|
|
63356
63493
|
* @param newParent defines the new parent to use for the instance (or clone)
|
|
63357
63494
|
* @param options defines options to configure how copy is done
|
|
63358
|
-
* @param options.doNotInstantiate defines if the model must be instantiated or just cloned
|
|
63359
63495
|
* @param onNewNodeCreated defines an option callback to call when a clone or an instance is created
|
|
63360
63496
|
* @returns an instance (or a clone) of the current node with its hierarchy
|
|
63361
63497
|
*/
|
|
@@ -73817,5 +73953,5 @@ declare const Vector2PropertyLine: FunctionComponent<TensorPropertyLineProps<Vec
|
|
|
73817
73953
|
declare const Vector3PropertyLine: FunctionComponent<TensorPropertyLineProps<Vector3>>;
|
|
73818
73954
|
declare const Vector4PropertyLine: FunctionComponent<TensorPropertyLineProps<Vector4>>;
|
|
73819
73955
|
|
|
73820
|
-
export { Accordion, AccordionSection, AccordionSectionItem, AttachDebugLayer, BooleanBadgePropertyLine, BoundProperty, BuiltInsExtensionFeed, Button, ButtonLine, Checkbox, CheckboxPropertyLine, ChildWindow, Collapse, Color3GradientComponent, Color3GradientList, Color3PropertyLine, Color4GradientComponent, Color4GradientList, Color4PropertyLine, ColorPickerPopup, ColorStepGradientComponent, ComboBox, ComboBoxPropertyLine, ConstructorFactory, ConvertOptions, DebugServiceIdentity, DetachDebugLayer, DraggableLine, Dropdown, EntitySelector, ErrorBoundary, ExtensibleAccordion, FactorGradientComponent, FactorGradientList, FileUploadLine, GetPropertyDescriptor, HexPropertyLine, InfoLabel, InputHexField, InputHsvField, Inspector, InterceptFunction, InterceptProperty, IsPropertyReadonly, LineContainer, Link, LinkPropertyLine, LinkToEntityPropertyLine, List, MakeDialogTeachingMoment, MakeLazyComponent, MakePopoverTeachingMoment, MakePropertyHook, MakeTeachingMoment, MaterialSelector, MessageBar, NodeSelector, NumberDropdown, NumberDropdownPropertyLine, NumberInputPropertyLine, ObservableCollection, Pane, PlaceholderPropertyLine, Popover, PositionedPopover, PropertiesServiceIdentity, Property, PropertyContext, PropertyLine, QuaternionPropertyLine, RotationVectorPropertyLine, SceneContextIdentity, SceneExplorerServiceIdentity, SearchBar, SearchBox, SelectionServiceDefinition, SelectionServiceIdentity, SettingsContextIdentity, SettingsServiceIdentity, ShellServiceIdentity, ShowInspector, SidePaneContainer, SkeletonSelector, SpinButton, SpinButtonPropertyLine, StatsServiceIdentity, StringDropdown, StringDropdownPropertyLine, StringifiedPropertyLine, Switch, SwitchPropertyLine, SyncedSliderInput, SyncedSliderPropertyLine, TeachingMoment, TextAreaPropertyLine, TextInput, TextInputPropertyLine, TextPropertyLine, Textarea, TextureSelector, TextureUpload, Theme, ToastProvider, ToggleButton, ToolsServiceIdentity, Tooltip, UploadButton, Vector2PropertyLine, Vector3PropertyLine, Vector4PropertyLine, useAngleConverters, useAsyncResource, useColor3Property, useColor4Property, useCompactMode, useDisableCopy, useEventListener, useEventfulState, useInterceptObservable, useKeyListener, useKeyState, useObservableCollection, useObservableState, useOrderedObservableCollection, usePollingObservable, useProperty, usePropertyChangedNotifier, useQuaternionProperty, useResource, useSidePaneDockOverrides, useToast, useVector3Property };
|
|
73821
|
-
export type { AcceptedDropdownValue, AccordionProps, AccordionSectionBlockProps, AccordionSectionItemProps, AccordionSectionProps, BasePrimitiveProps, BoundPropertyProps, BuiltInExtension, ButtonProps, CentralContentDefinition, ChildWindowOptions, ChildWindowProps, ColorPickerProps, ColorPropertyLineProps, ComboBoxOption, ComboBoxProps, DraggableLineProps, DropdownOption, DropdownProps, DynamicAccordionSection, DynamicAccordionSectionContent, EntityDisplayInfo, EntitySelectorProps, ExtensionMetadata, ExtensionModule, FunctionHooks, HexPropertyLineProps, IDebugService, IExtensionFeed, IExtensionMetadataQuery, IPropertiesService, ISceneContext, ISceneExplorerService, ISelectionService, IService, ISettingsContext, ISettingsService, IShellService, IStatsService, IToolsService, ImmutablePrimitiveProps, InfoLabelParentProps, InfoLabelProps, InputHexProps, InspectorOptions, InspectorToken, LinkProps, ListItem, MaterialSelectorProps, NodeSelectorProps, NumberInputPropertyLineProps, PaneProps, PersonMetadata, PrimitiveProps, PropertyChangeInfo, PropertyHooks, PropertyLineProps, PropertyProps, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection, SectionsImperativeRef, ServiceDefinition, ServiceFactory, SidePaneDefinition, SkeletonSelectorProps, SpinButtonProps, SwitchProps, SyncedSliderProps, TensorPropertyLineProps, TextInputProps, TextareaProps, TextureSelectorProps, ToolbarItemDefinition, TooltipProps, WindowOptions };
|
|
73956
|
+
export { Accordion, AccordionSection, AccordionSectionItem, AttachDebugLayer, BooleanBadgePropertyLine, BoundProperty, BuiltInsExtensionFeed, Button, ButtonLine, Checkbox, CheckboxPropertyLine, ChildWindow, Collapse, Color3GradientComponent, Color3GradientList, Color3PropertyLine, Color4GradientComponent, Color4GradientList, Color4PropertyLine, ColorPickerPopup, ColorStepGradientComponent, ComboBox, ComboBoxPropertyLine, ConstructorFactory, ConvertOptions, DebugServiceIdentity, DetachDebugLayer, DraggableLine, Dropdown, EntitySelector, ErrorBoundary, ExtensibleAccordion, FactorGradientComponent, FactorGradientList, FileUploadLine, GetPropertyDescriptor, GizmoServiceIdentity, HexPropertyLine, InfoLabel, InputHexField, InputHsvField, Inspector, InterceptFunction, InterceptProperty, IsPropertyReadonly, LineContainer, Link, LinkPropertyLine, LinkToEntityPropertyLine, List, MakeDialogTeachingMoment, MakeLazyComponent, MakePopoverTeachingMoment, MakePropertyHook, MakeTeachingMoment, MaterialSelector, MessageBar, NodeSelector, NumberDropdown, NumberDropdownPropertyLine, NumberInputPropertyLine, ObservableCollection, Pane, PlaceholderPropertyLine, Popover, PositionedPopover, PropertiesServiceIdentity, Property, PropertyContext, PropertyLine, QuaternionPropertyLine, RotationVectorPropertyLine, SceneContextIdentity, SceneExplorerServiceIdentity, SearchBar, SearchBox, SelectionServiceDefinition, SelectionServiceIdentity, SettingsContextIdentity, SettingsServiceIdentity, ShellServiceIdentity, ShowInspector, SidePaneContainer, SkeletonSelector, SpinButton, SpinButtonPropertyLine, StatsServiceIdentity, StringDropdown, StringDropdownPropertyLine, StringifiedPropertyLine, Switch, SwitchPropertyLine, SyncedSliderInput, SyncedSliderPropertyLine, TeachingMoment, TextAreaPropertyLine, TextInput, TextInputPropertyLine, TextPropertyLine, Textarea, TextureSelector, TextureUpload, Theme, ToastProvider, ToggleButton, ToolsServiceIdentity, Tooltip, UploadButton, Vector2PropertyLine, Vector3PropertyLine, Vector4PropertyLine, useAngleConverters, useAsyncResource, useColor3Property, useColor4Property, useCompactMode, useDisableCopy, useEventListener, useEventfulState, useInterceptObservable, useKeyListener, useKeyState, useObservableCollection, useObservableState, useOrderedObservableCollection, usePollingObservable, useProperty, usePropertyChangedNotifier, useQuaternionProperty, useResource, useSidePaneDockOverrides, useTheme, useToast, useVector3Property };
|
|
73957
|
+
export type { AcceptedDropdownValue, AccordionProps, AccordionSectionBlockProps, AccordionSectionItemProps, AccordionSectionProps, BasePrimitiveProps, BoundPropertyProps, BuiltInExtension, ButtonProps, CentralContentDefinition, ChildWindowOptions, ChildWindowProps, ColorPickerProps, ColorPropertyLineProps, ComboBoxOption, ComboBoxProps, DraggableLineProps, DropdownOption, DropdownProps, DynamicAccordionSection, DynamicAccordionSectionContent, EntityDisplayInfo, EntitySelectorProps, ExtensionMetadata, ExtensionModule, FunctionHooks, GizmoMode, HexPropertyLineProps, IDebugService, IExtensionFeed, IExtensionMetadataQuery, IGizmoService, IPropertiesService, ISceneContext, ISceneExplorerService, ISelectionService, IService, ISettingsContext, ISettingsService, IShellService, IStatsService, IToolsService, ImmutablePrimitiveProps, InfoLabelParentProps, InfoLabelProps, InputHexProps, InspectorOptions, InspectorToken, LinkProps, ListItem, MaterialSelectorProps, NodeSelectorProps, NumberInputPropertyLineProps, PaneProps, PersonMetadata, PrimitiveProps, PropertyChangeInfo, PropertyHooks, PropertyLineProps, PropertyProps, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection, SectionsImperativeRef, ServiceDefinition, ServiceFactory, SidePaneDefinition, SkeletonSelectorProps, SpinButtonProps, SwitchProps, SyncedSliderProps, TensorPropertyLineProps, TextInputProps, TextareaProps, TextureSelectorProps, ToolbarItemDefinition, TooltipProps, WindowOptions };
|