From 46b0abbb3b05b7c94bb9c87fb1df763cfef11f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 28 Sep 2016 13:56:22 +0200 Subject: [PATCH] do nothing if the face range is empty --- .../include/CGAL/Polygon_mesh_processing/remesh.h | 3 +++ 1 file changed, 3 insertions(+) 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;