From 3becb6aa7b4ccd14af9dc13ab4b5bf33d54ec9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Tue, 20 Jun 2017 14:40:52 +0200 Subject: [PATCH] Hid std::cerr behind debug macros --- BGL/include/CGAL/boost/graph/Seam_mesh.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BGL/include/CGAL/boost/graph/Seam_mesh.h b/BGL/include/CGAL/boost/graph/Seam_mesh.h index 1ad97fea5be..dbb03d2576d 100644 --- a/BGL/include/CGAL/boost/graph/Seam_mesh.h +++ b/BGL/include/CGAL/boost/graph/Seam_mesh.h @@ -973,13 +973,17 @@ public: { std::pair tmed = CGAL::edge(tm_vd_s, tm_vd_t, tm); if(!tmed.second) { +#ifdef SEAM_MESH_DEBUG std::cerr << "Warning: Ignored a constraint because it is not a valid edge of the mesh" << std::endl; +#endif return false; } if(!is_border(tmed.first, tm)) { // ignore seams that are also a border edge if(get(sem, tmed.first) == true) { +#ifdef SEAM_MESH_DEBUG std::cerr << "Warning: Ignored a constraint because it is already marked as a seam" << std::endl; +#endif return false; } @@ -988,7 +992,9 @@ public: put(svm, tm_vd_t, true); ++number_of_seams; } else { +#ifdef SEAM_MESH_DEBUG std::cerr << "Warning: Ignored a constraint because it is on the border of the mesh" << std::endl; +#endif return false; }