MeshData
Defined in: sdk/src/asset/meshFormat.ts:149
The .esmesh read/write door. Public because writing one is what an importer
does — a glTF cook, a plugin’s own format — and reading one has to agree with
it exactly. @beta.
Properties
Section titled “Properties”aabbMax
Section titled “aabbMax”aabbMax: [
number,number,number]
Defined in: sdk/src/asset/meshFormat.ts:157
aabbMin
Section titled “aabbMin”aabbMin: [
number,number,number]
Defined in: sdk/src/asset/meshFormat.ts:156
channels
Section titled “channels”channels:
MeshChannelDesc[]
Defined in: sdk/src/asset/meshFormat.ts:150
clusters?
Section titled “clusters?”
optionalclusters?:MeshClusters
Defined in: sdk/src/asset/meshFormat.ts:173
The levels of detail a view picks clusters from. Absent for a mesh drawn whole.
indices
Section titled “indices”indices:
Uint32Array
Defined in: sdk/src/asset/meshFormat.ts:155
inverseBindMatrices?
Section titled “inverseBindMatrices?”
optionalinverseBindMatrices?:Float32Array<ArrayBufferLike>
Defined in: sdk/src/asset/meshFormat.ts:164
The bind pose, one 4x4 per joint, in the order the Joints channel indexes.
It lives with the vertices because those indices point AT it — split apart,
a file’s indices would name something it does not carry. Absent for
geometry that is not skinned.
morph?
Section titled “morph?”
optionalmorph?:MeshMorphTargets
Defined in: sdk/src/asset/meshFormat.ts:171
The shapes this geometry can be blended towards. Like the bind pose, it lives with the vertices because it is indexed BY them — one delta per vertex per target, so a file carrying the two apart could not say which vertex a delta moves.
skinChunks?
Section titled “skinChunks?”
optionalskinChunks?:MeshSkinChunks
Defined in: sdk/src/asset/meshFormat.ts:178
The skin split into chunks, each drawn on its own with the bones it names: absent when one draw can pose the whole
skin. With chunks, the Joints channel indexes the vertex’s chunk’s bones, not the bind matrices.
vertexCount
Section titled “vertexCount”vertexCount:
number
Defined in: sdk/src/asset/meshFormat.ts:152
vertexStride
Section titled “vertexStride”vertexStride:
number
Defined in: sdk/src/asset/meshFormat.ts:151
vertices
Section titled “vertices”vertices:
Uint8Array
Defined in: sdk/src/asset/meshFormat.ts:154
Interleaved vertex bytes, vertexCount * vertexStride long.