bvh icon indicating copy to clipboard operation
bvh copied to clipboard

Support for Distance Queries

Open SallySoul opened this issue 3 years ago • 1 comments

This is sort of a feature request, but I would also be happy to work on implementing it!

I am experimenting with porting some of our C++ code to rust. I would love to use a community supported BVH implementation this time around. However, besides ray intersections, we also make extensive use of distance queries, i.e. what is the closest object/s in the BVH to arbitrary points.

Is this functionality y'all would be open to having in this crate?

I have some ideas on how that would look which I'd be happy to discuss, and there are some other queries I'd be willing to port over too like a Fast Winding Number, but I don't want to get ahead of myself or be overwhelming.

SallySoul avatar Jan 14 '21 01:01 SallySoul

I think having this kind of feature would be excellent and I'd happily accept a PR.

svenstaro avatar Jan 14 '21 01:01 svenstaro