Time-sliced version of buildSpatialIndex. Computes mesh bounds in chunks, yielding to the event loop between chunks so orbit/pan stays responsive during index construction.
All mesh data
Optional
Max ms per chunk (finite and non-negative; default 4 — quarter of a 60fps frame)
Promise that resolves to the BVH
Time-sliced version of buildSpatialIndex. Computes mesh bounds in chunks, yielding to the event loop between chunks so orbit/pan stays responsive during index construction.