From cef8728a2fc93c31f9b14408221c79ebc23e14f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Sun, 13 Feb 2022 21:07:48 +0100 Subject: [PATCH] Add a convenience macro when no culling is desired (debug) --- .../AABB_traversal_traits_with_Hausdorff_distance.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/AABB_traversal_traits_with_Hausdorff_distance.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/AABB_traversal_traits_with_Hausdorff_distance.h index 654b19e97dd..216332c708a 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/AABB_traversal_traits_with_Hausdorff_distance.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/AABB_traversal_traits_with_Hausdorff_distance.h @@ -141,9 +141,12 @@ public: { // not in a single line for clarity: the lhs only goes down with every TM2 face, // while the rhs only goes up with every TM1 face +// #define CGAL_PMP_HDIST_NO_CULLING_DURING_TRAVERSAL +#ifndef CGAL_PMP_HDIST_NO_CULLING_DURING_TRAVERSAL if(m_local_bounds.upper < m_global_bounds.lower) // Section 4.1, first ยง return false; else +#endif return true; } @@ -265,7 +268,11 @@ public: template bool do_intersect(const Query& query, const Node& node) const { +#ifdef CGAL_PMP_HDIST_NO_CULLING_DURING_TRAVERSAL + return true; +#else return this->do_intersect_with_priority(query, node).first; +#endif } // Return the local Hausdorff bounds computed for the passed query triangle. @@ -544,7 +551,11 @@ public: template bool do_intersect(const Query& query, const Node& node) { +#ifdef CGAL_PMP_HDIST_NO_CULLING_DURING_TRAVERSAL + return true; +#else return this->do_intersect_with_priority(query, node).first; +#endif } template