diff --git a/vcg/complex/trimesh/create/ball_pivoting.h b/vcg/complex/trimesh/create/ball_pivoting.h index c5978204..c364bc7c 100644 --- a/vcg/complex/trimesh/create/ball_pivoting.h +++ b/vcg/complex/trimesh/create/ball_pivoting.h @@ -204,6 +204,7 @@ class Pivot { if(v.IsD() || v.IsV() || v.IsB()) continue; if(seed(true, i)) return 1; v.SetD(); + --mesh.vn; } return -1; } @@ -546,6 +547,7 @@ class Pivot { CVertex &v = mesh.vert[id]; if(v.IsD() || v.IsV() || v.IsB()) continue; v.SetD(); + --mesh.vn; } }