From 736ef2bc2459d8d91ced4b7d62511095720e9427 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 14 Oct 2006 00:39:52 +0000 Subject: [PATCH] Decreased vn when deleting a vertex --- vcg/complex/trimesh/create/ball_pivoting.h | 2 ++ 1 file changed, 2 insertions(+) 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; } }