Decreased vn when deleting a vertex

This commit is contained in:
Paolo Cignoni 2006-10-14 00:39:52 +00:00
parent 7c72709af7
commit 736ef2bc24
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}