@pmndrs/bvh
    Preparing search index...

    Interface GpuMeshTreeRange

    One mesh's tree inside a batch's shared buffers (GpuTreeBuffers).

    interface GpuMeshTreeRange {
        bounds: Float32Array;
        leafCount: number;
        maxDepth: number;
        nodeCount: number;
        nodeOffset: number;
        parentOffset?: number;
        problem: string | null;
        triangleCount: number;
        triangleOffset: number;
    }
    Index
    bounds: Float32Array

    Object-space box around the mesh: [minX, minY, minZ, maxX, maxY, maxZ].

    leafCount: number
    maxDepth: number

    Levels of nodes on the longest path.

    nodeCount: number
    nodeOffset: number

    The mesh's node 0 (its root) is this node of the shared node buffer (and of the parent buffer, unless parentOffset says otherwise). Child indices are the mesh's own. With quantized nodes, the root's 32-byte slot; the mesh's frame slot is the one before.

    parentOffset?: number

    Where the mesh's parents start in the shared parent buffer, when not at nodeOffset (quantized trees).

    problem: string | null

    Why this tree must not be used, or null.

    triangleCount: number
    triangleOffset: number

    The mesh's first triangle in the shared triangle buffer. Leaf indices are the mesh's own.