Class: NVMeshUtilities
Defined in: nvmesh-utilities.ts:13
Utilities class for common mesh functions
Constructors
Constructor
new NVMeshUtilities(): NVMeshUtilities;
Returns
NVMeshUtilities
Methods
createMZ3()
static createMZ3(
vertices: Float32Array,
indices: Uint32Array,
compress: boolean,
colors: Uint8Array,
scalars: Float32Array,
colormapLabel: LUT): ArrayBuffer;
Defined in: nvmesh-utilities.ts:53
Parameters
| Parameter | Type | Default value |
|---|---|---|
vertices | Float32Array | undefined |
indices | Uint32Array | undefined |
compress | boolean | false |
colors | Uint8Array | null |
scalars | Float32Array | null |
colormapLabel | LUT | null |
Returns
ArrayBuffer
createMZ3Async()
static createMZ3Async(
vertices: Float32Array,
indices: Uint32Array,
compress: boolean,
colors: Uint8Array,
scalars: Float32Array,
colormapLabel: LUT): Promise<ArrayBuffer>;
Defined in: nvmesh-utilities.ts:202
Parameters
| Parameter | Type | Default value |
|---|---|---|
vertices | Float32Array | undefined |
indices | Uint32Array | undefined |
compress | boolean | false |
colors | Uint8Array | null |
scalars | Float32Array | null |
colormapLabel | LUT | null |
Returns
Promise<ArrayBuffer>
createOBJ()
static createOBJ(vertices: Float32Array, indices: Uint32Array): ArrayBuffer;
Defined in: nvmesh-utilities.ts:217
Parameters
| Parameter | Type |
|---|---|
vertices | Float32Array |
indices | Uint32Array |