OptionalboundsAs BvhTraverseCallbacks.intersectsBounds, with the box as Box.
OptionalintersectsA range of tree positions, before its triangles are handed to
intersectsTriangle; a truthy return stops the cast (and skips them).
Without intersectsTriangle it decides alone. With neither, a cast
stops at the first contained box (three-mesh-bvh's default).
OptionalintersectsEach triangle of an entered leaf or a contained box, in tree order:
triangleIndex is the original index, contained whether a box above
it was reported contained. A truthy return stops the cast.
The callbacks of CpuMeshBvh.shapecast: three-mesh-bvh's
shapecastcallbacks (0.9.18), with its argument order and meaning.Boxis what the boxes come as (a BvhBox3 here, a threeBox3in@pmndrs/bvh/three),Trianglewhat the triangles come as (an ExtendedTriangle here, the three-flavoured one there). Both are scratch objects, valid only during the call.