gkjohnson / three-mesh-bvh

A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
https://gkjohnson.github.io/three-mesh-bvh/example/bundle/raycast.html
MIT License
2.39k stars 247 forks source link

Respect draw range when making the BVH #588

Closed gkjohnson closed 10 months ago

gkjohnson commented 10 months ago

Fix #587

TODO

gkjohnson commented 10 months ago

Errors are caused because ~ ~ Infinite === 0

gkjohnson commented 10 months ago

The structure of the BVH is expecting the indirect bounds to be in the full range of the index buffer - which may be fine.