From e023fc9157a5302c91f43f59bc6b64fa8565654f Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Thu, 2 Feb 2017 17:26:05 +0100 Subject: [PATCH] protect verbose code with macro CGAL_MESH_3_PROTECTION_DEBUG --- Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h b/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h index 8aa2c7060d4..d2462ee20f1 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h +++ b/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h @@ -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; } }