Placement
A model placed in the world at a given animation frame (MagicaVoxel Z-up).
Defined in: vox.ts:179
Properties
| Property | Type | Defined in |
|---|---|---|
layerId | number | vox.ts:183 |
model | VoxModel | vox.ts:180 |
rot | Mat3 | vox.ts:181 |
trans | [number, number, number] | vox.ts:182 |
writeVox()
Serialize one model to a MagicaVoxel ".vox" ArrayBuffer (SIZE + XYZI + RGBA). voxels are [x, y, z, colorIndex] with a 1-based colour index; colorFor maps a 1-based index (1..255) to an RGB triple or null (transparent/unused). Pure (no fs) — callers write the returned bytes to disk themselves....
Voxel
One voxel of a .vox model, in the file's Z-up coordinates (0..255 per axis).