From ed521e03b0d3b5a8006f5828cc75d66dcfa19ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 7 Sep 2023 17:33:41 +0200 Subject: [PATCH] rename macro --- Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h b/Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h index 2b5ccccacad..3c53b56f401 100644 --- a/Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h +++ b/Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h @@ -523,8 +523,8 @@ public: return r_domain_.bounding_aabb_tree_ptr()-> first_intersected_primitive(ray); } - -#if USE_ALL_INTERSECTIONS +#define CGAL_USE_ALL_INTERSECTIONS 0 +#if CGAL_USE_ALL_INTERSECTIONS boost::optional shoot_a_ray_2(const Ray_3 ray) const { const Point_3& p = ray.source(); typedef typename AABB_tree:: @@ -551,7 +551,7 @@ public: return it->second; } } -#endif // USE_ALL_INTERSECTIONS +#endif // CGAL_USE_ALL_INTERSECTIONS Subdomain operator()(const Point_3& p) const { if(r_domain_.bounding_aabb_tree_ptr() == 0) return Subdomain(); @@ -573,8 +573,7 @@ public: const Ray_3 ray_shot = ray(p, vector(CGAL::ORIGIN,*random_point)); -#define USE_ALL_INTERSECTIONS 0 -#if USE_ALL_INTERSECTIONS +#if CGAL_USE_ALL_INTERSECTIONS boost::optional opt = shoot_a_ray_2(ray_shot); #else // first_intersected_primitive boost::optional opt = shoot_a_ray_1(ray_shot);