mirror of https://github.com/CGAL/cgal
add CGAL_warning_msg and move debug code inside CGAL_assertion_code
This commit is contained in:
parent
2031009745
commit
747db7204e
|
|
@ -325,6 +325,9 @@ namespace internal {
|
||||||
pmesh);
|
pmesh);
|
||||||
CGAL_assertion(CGAL::is_triangle_mesh(mesh_));
|
CGAL_assertion(CGAL::is_triangle_mesh(mesh_));
|
||||||
CGAL_assertion_code(input_mesh_is_valid_ = CGAL::is_valid_polygon_mesh(pmesh));
|
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()
|
~Incremental_remesher()
|
||||||
|
|
@ -1962,7 +1965,7 @@ private:
|
||||||
EdgeIsConstrainedMap ecmap_;
|
EdgeIsConstrainedMap ecmap_;
|
||||||
VertexIsConstrainedMap vcmap_;
|
VertexIsConstrainedMap vcmap_;
|
||||||
FaceIndexMap fimap_;
|
FaceIndexMap fimap_;
|
||||||
bool input_mesh_is_valid_;
|
CGAL_assertion_code(bool input_mesh_is_valid_;)
|
||||||
|
|
||||||
};//end class Incremental_remesher
|
};//end class Incremental_remesher
|
||||||
}//end namespace internal
|
}//end namespace internal
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue