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

    A leaf voxel in the sparse hierarchy. Subdivided parent voxels are not exposed.

    interface VoxelLeaf {
        level: number;
        size: number;
        state: VoxelState;
        supportHeight: number;
        supportId: number;
        verticalConnectionAllowed: boolean;
        x: number;
        y: number;
        z: number;
    }
    Index

    Properties

    level: number
    size: number

    World-space edge length of this cubic leaf.

    state: VoxelState

    Current voxel classification.

    supportHeight: number

    Highest sampled geometry surface inside this solid voxel, or NaN when unavailable.

    supportId: number

    Compact identifier of the geometry instance providing the sampled support surface.

    verticalConnectionAllowed: boolean

    Whether intersected geometry allows a vertical navigation connection.

    x: number

    Integer coordinates relative to VoxelGrid.origin, expressed in units of this leaf's resolution: [x, y, z].

    y: number
    z: number