From 747db7204ede026f1ca69d4a5dc63485b4fa2b0c Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 11 Sep 2020 15:47:20 +0200 Subject: [PATCH] add CGAL_warning_msg and move debug code inside CGAL_assertion_code --- .../internal/Isotropic_remeshing/remesh_impl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h index b00fa2688ba..16140c8bb95 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h @@ -325,6 +325,9 @@ namespace internal { pmesh); CGAL_assertion(CGAL::is_triangle_mesh(mesh_)); CGAL_assertion_code(input_mesh_is_valid_ = CGAL::is_valid_polygon_mesh(pmesh)); + CGAL_warning_msg(input_mesh_is_valid_, + "The input mesh is not a valid polygon mesh. " + "It could lead PMP::isotropic_remeshing() to fail."); } ~Incremental_remesher() @@ -1962,7 +1965,7 @@ private: EdgeIsConstrainedMap ecmap_; VertexIsConstrainedMap vcmap_; FaceIndexMap fimap_; - bool input_mesh_is_valid_; + CGAL_assertion_code(bool input_mesh_is_valid_;) };//end class Incremental_remesher }//end namespace internal