Model loading · interface
BlendMeshData
Explained in Importing models.
interface BlendMeshDataimport type { BlendMeshData } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
namereadonly | string | |
positionsreadonly | Float32Array | |
faceOffsetsreadonly | Int32Array | Face f owns corners faceOffsets[f] to faceOffsets[f + 1]. |
cornerVertsreadonly | Int32Array | |
cornerEdgesreadonly | Int32Array | |
edgeVertsreadonly | Int32Array | |
materialIndexreadonly | Int32Array | null | |
sharpFacereadonly | Uint8Array | null | |
sharpEdgereadonly | Uint8Array | null | |
uvsreadonly | readonly { name: string; uv: Float32Array; }[] | UV maps in the file's order, two floats per corner. |
renderUvreadonly | number | Which UV map renders when a texture names none: Blender's "active render" map. |
colorsreadonly | readonly BlendColorLayer[] | |
renderColorreadonly | number | The colour attribute a material's unnamed Color Attribute node reads. |
packedNormalsreadonly | Int16Array | null | Custom normals in Blender's packed form: two shorts per corner, relative to its fan. |
freeNormalsreadonly | { domain: number; normals: Float32Array; } | null | Custom normals stored as plain vectors, 4.5 on, in the domain they were written to. |
autoSmoothreadonly | number | null | The split angle a pre-4.1 file's auto smooth asked for, or null where it was off. |
weightsreadonly | { offsets: Int32Array; groups: Int32Array; values: Float32Array; } | null | Per vertex, the groups it belongs to and how much: flattened (group, weight) pairs. |
groupNamesreadonly | readonly string[] |