@pmndrs/bvh
    Preparing search index...

    Interface TinyBvhLayoutOptions

    interface TinyBvhLayoutOptions {
        builder?: "default" | "hploc";
        maxLeafPrimitives?: number;
        nodeFormat?: "f32" | "quantized";
        parents?: boolean;
        triangleLeaves?: "records" | "indexed";
    }

    Hierarchy (View Summary)

    Index
    builder?: "default" | "hploc"

    'default': tinybvh's default builder (SIMD Bonsai), the tracer's trees. 'hploc': its scalar BuildHPLOC (leaves of one triangle), slow, for comparing the GPU H-PLOC's trees with (B2).

    maxLeafPrimitives?: number

    Leaves with more triangles than this are cut in half until they fit. 1 to 8; default 8.

    nodeFormat?: "f32" | "quantized"

    'quantized': 32-byte nodes (docs/internals/design/compressed-nodes.md), packed inside the WASM after its 64-byte nodes are written (or, as for triangleLeaves, in JavaScript on the way out). Default 'f32'.

    parents?: boolean

    Copy each node's parent out (4 bytes per node). Default true. False (P9 lever 7: a tree no refit will use) gives an empty parents array; such a tree can be placed and traced, but not refit or made a CpuMeshBvh.

    triangleLeaves?: "records" | "indexed"

    'indexed': 16-byte indexed triangles (docs/internals/design/indexed-leaves.md), written inside the WASM (no 48-byte records are made). With a .wasm from before tbvh_write_layout_as, or formatsInWasm: false, the WASM writes records and they are converted on the way out of its memory. Default 'records'.