Builds a mesh BVH with tinybvh's builder (WASM, from @pmndrs/bvh). The WASM
also writes our layout (stage B0b), byte for byte what
buildMeshBvhFromTopology makes from tinybvh's tree
(mesh-bvh-tinybvh-layout.test.ts), without the JavaScript pass over every
node and triangle: on a large mesh that pass is a big share of the build
time, whatever the code does (NOTES, "JS memory speed"). tinyBvh comes
from createTinyBvhBuilder(); one build at a time.
Builds a mesh BVH with tinybvh's builder (WASM, from @pmndrs/bvh). The WASM also writes our layout (stage B0b), byte for byte what buildMeshBvhFromTopology makes from tinybvh's tree (
mesh-bvh-tinybvh-layout.test.ts), without the JavaScript pass over every node and triangle: on a large mesh that pass is a big share of the build time, whatever the code does (NOTES, "JS memory speed").tinyBvhcomes fromcreateTinyBvhBuilder(); one build at a time.