add CGAL_warning_msg and move debug code inside CGAL_assertion_code

This commit is contained in:
Jane Tournois 2020-09-11 15:47:20 +02:00
parent 2031009745
commit 747db7204e
1 changed files with 4 additions and 1 deletions

View File

@ -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