do nothing if the face range is empty

This commit is contained in:
Sébastien Loriot 2016-09-28 13:56:22 +02:00
parent 8b95f0d8f6
commit 46b0abbb3b
1 changed files with 3 additions and 0 deletions

View File

@ -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<PM>::vertex_descriptor vertex_descriptor;
using boost::choose_pmap;