Skip to content

@divnotes/dn-voxel-loader - v0.1.10 / dn-voxel-loader / VoxelData

Interface: VoxelData<>

dn-voxel-loader.VoxelData

Table of contents

Properties

Properties

materials

materials: VoxelMaterial[]

Array of materials defined in the file (index corresponds to material ID - 1, e.g., materials[0] is ID 1).

Defined in

types.js:71


octree

octree: SparseOctree

The sparse octree containing voxel data.

Defined in

types.js:69


palette

palette: RGBA[]

The color palette (array of 257 RGBA objects, index 0 is empty).

Defined in

types.js:70


size

size: VoxelSize

The dimensions of the model.

Defined in

types.js:68

Released under the MPL-2.0 License.