protect verbose code with macro CGAL_MESH_3_PROTECTION_DEBUG

This commit is contained in:
Jane Tournois 2017-02-02 17:26:05 +01:00 committed by Laurent Rineau
parent 83f74c0448
commit e023fc9157
1 changed files with 2 additions and 0 deletions

View File

@ -1510,10 +1510,12 @@ is_sampling_dense_enough(const Vertex_handle& v1, const Vertex_handle& v2) const
// Sufficient condition so that the curve portion between v1 and v2 is
// inside the union of the two balls.
if(geodesic_distance > (size_v1 + size_v2)) {
#if CGAL_MESH_3_PROTECTION_DEBUG & 1
std::cerr << "Note: on curve #" << curve_index << ", between ("
<< v1->point() << ") and (" << v2->point() << "), the "
<< "geodesic distance is " << geodesic_distance << " and the"
<< " sum of radii is " << size_v1 + size_v2 << std::endl;
#endif
return false;
}
}