cgal-swig-bindings icon indicating copy to clipboard operation
cgal-swig-bindings copied to clipboard

Add first_intersection / first_intersected_primitive to CGAL_AABB_tree bindings

Open noamgat opened this issue 4 years ago • 1 comments

Just like any_intersection() / any_intersected_primitive() have been added to the swig binding for CGAL_AABB_tree, it would be very helpful if first_intersection / first_intersected_primitive() would be added as well (even without the skip functor), as they are the most important data when raycasting. It should be easy, given that the any variant is there.

If that is impossible, perhaps updating the python example AABB_triangle_3_example.py for using "all_intersected_primitives"? it expects a "Primitive iterator helper" which I have no idea how to construct in python.

Thanks!

noamgat avatar Oct 25 '20 06:10 noamgat

Created a PR: https://github.com/CGAL/cgal-swig-bindings/pull/187

noamgat avatar Oct 26 '20 07:10 noamgat