Add a convenience macro when no culling is desired (debug)

This commit is contained in:
Mael Rouxel-Labbé 2022-02-13 21:07:48 +01:00
parent b6d9759964
commit cef8728a2f
1 changed files with 11 additions and 0 deletions

View File

@ -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<class Node>
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<class Node>
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<class PrimitiveConstIterator>