From 90542aa0abae8908a836b9d02b7cbf4930e4b5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20M=C3=B6ller?= Date: Thu, 22 Oct 2015 16:12:14 +0200 Subject: [PATCH] Add the doc for ray_intersection --- AABB_tree/include/CGAL/AABB_tree.h | 6 ++++++ 1 file changed, 6 insertions(+) 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;