@pmndrs/bvh
    Preparing search index...

    Variable LBVH_STATConst

    LBVH_STAT: {
        badIndices: 19;
        bounds: 11;
        centroidMax: 3;
        centroidMin: 0;
        incomplete: 17;
        leafCount: 9;
        maxDepth: 10;
        meshMax: 23;
        meshMin: 20;
        nodeCount: 8;
        nodeOffset: 7;
        rootNode: 6;
        rootsFinished: 18;
    } = ...

    Word positions in a mesh's stats (one block of LBVH_STATS_WORDS per mesh).

    Type Declaration

    • ReadonlybadIndices: 19

      Triangle corners that named a vertex past the end. Must be 0.

    • Readonlybounds: 11

      The mesh's box as f32 bits: min x, y, z, then max x, y, z.

    • ReadonlycentroidMax: 3
    • ReadonlycentroidMin: 0

      Centroid bounds as order-preserving integers: min x, y, z, then max x, y, z.

    • Readonlyincomplete: 17

      Handed-over words still unwritten after the bounded wait, or climbs that didn't end. Must be 0.

    • ReadonlyleafCount: 9
    • ReadonlymaxDepth: 10
    • ReadonlymeshMax: 23
    • ReadonlymeshMin: 20

      The box around every triangle as order-preserving integers: min x, y, z, then max x, y, z (tinybvh's Morton codes, gpu-hploc.ts).

    • ReadonlynodeCount: 8
    • ReadonlynodeOffset: 7

      Where the mesh's first node is in the output nodes and parents, in nodes.

    • ReadonlyrootNode: 6

      Split index of the root in the mesh's radix tree.

    • ReadonlyrootsFinished: 18

      Threads that finished the root: must be 1.