Documentation - v19.12.0-dev
    Preparing search index...

    Runtime representation of a serialized voxel grid: exposes its spatial chunks, tracks the connected-component classification currently applied to it, and can be resent to workers via its packed snapshot.

    Index

    Constructors

    Properties

    chunks: readonly SerializedVoxelChunk[]

    Spatial chunks whose voxel data shares one buffer when the grid fits the packing limit.

    emptyVoxelCount: number

    Number of leaf voxels that do not intersect scene geometry.

    granularities: Float32Array

    Voxel sizes by resolution level, ordered from the largest root size to the finest size.

    gridBounds: Float64Array

    World-space bounds covered by the complete set of spatial chunks.

    origin: Float64Array

    World-space minimum corner used to convert integer voxel coordinates into positions.

    packedSnapshot: PackedVoxelGrid | null

    Shared voxel storage sent directly to flood-fill workers without another copy.

    solidVoxelCount: number

    Number of leaf voxels intersecting scene geometry.

    version: 1 = ...

    Version of the serialized voxel-grid contract represented by this instance.

    voxelCount: number

    Total number of leaf voxels across every chunk.

    Accessors

    Methods

    • Applies connected-component membership to the grid's non-solid voxel states.

      Parameters

      Returns void

    • Removes connected-component membership while preserving solid occupancy.

      Returns void

    • Returns Generator<VoxelLeaf>