Optional ReadonlybuilderOptional ReadonlymaxLeaves with more triangles than this are cut in half until they fit. 1 to 8; default 8.
Optional Readonlynode'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'.
Optional ReadonlyparentsCopy 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.
Optional Readonlytriangle'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'.
'default': tinybvh's default builder (SIMD Bonsai), the tracer's trees.'hploc': its scalarBuildHPLOC(leaves of one triangle), slow, for comparing the GPU H-PLOC's trees with (B2).