diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh.h index ef622802384..186d6951a97 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh.h @@ -121,6 +121,9 @@ void isotropic_remeshing(const FaceRange& faces , PolygonMesh& pmesh , const NamedParameters& np) { + if (boost::begin(faces)==boost::end(faces)) + return; + typedef PolygonMesh PM; typedef typename boost::graph_traits::vertex_descriptor vertex_descriptor; using boost::choose_pmap;