From 7b727ea7cfd4ad0fd191ff5beb6f0a03e43bf6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 2 Dec 2016 16:11:48 +0100 Subject: [PATCH] expose the internal AABB-tree class that was a bug as the constructor taking an AABB-tree could not be used otherwise --- .../include/CGAL/Side_of_triangle_mesh.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h b/Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h index b6d8a569556..5c1acc0b965 100644 --- a/Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h +++ b/Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h @@ -72,16 +72,24 @@ class Side_of_triangle_mesh // typedefs typedef CGAL::AABB_face_graph_triangle_primitive Primitive; typedef CGAL::AABB_traits Traits; - typedef CGAL::AABB_tree AABB_tree; + typedef CGAL::AABB_tree AABB_tree_; typedef typename GeomTraits::Point_3 Point; //members typename GeomTraits::Construct_ray_3 ray_functor; typename GeomTraits::Construct_vector_3 vector_functor; - const AABB_tree* tree_ptr; + const AABB_tree_* tree_ptr; bool own_tree; public: + + #ifndef DOXYGEN_RUNNING + typedef AABB_tree_ AABB_tree; + #else + /// AABB-tree accepting faces of `TriangleMesh` + typedef unspecified_type AABB_tree; + #endif + /** * Constructor with one triangulated surface mesh. * @param tmesh the triangulated surface mesh bounding the domain to be tested