Reads one MagicaVoxel VOX model, including an optional RGBA palette chunk.
import { parseVox } from '@datamoc/mwg/3d';declare const voxBytes: ArrayBuffer;const model = parseVox(voxBytes);console.log(model.size, model.voxels.length); Copy
import { parseVox } from '@datamoc/mwg/3d';declare const voxBytes: ArrayBuffer;const model = parseVox(voxBytes);console.log(model.size, model.voxels.length);
Reads one MagicaVoxel VOX model, including an optional RGBA palette chunk.