diff --git a/AABB_tree/include/CGAL/AABB_tree.h b/AABB_tree/include/CGAL/AABB_tree.h index 7d51829e396..616c21df28b 100644 --- a/AABB_tree/include/CGAL/AABB_tree.h +++ b/AABB_tree/include/CGAL/AABB_tree.h @@ -392,6 +392,12 @@ public: #endif any_intersection(const Query& query) const; + // Return the intersection closest to the source point of the ray + // query. Type `Ray` must be a type for which `do_intersect` + // predicates and intersections are defined. + // + // `AABBTraits` must be a model of `AABBRayIntersectionTraits` to + // call this member function. template boost::optional< typename Intersection_and_primitive_id::Type > ray_intersection(const Ray& query) const;