added return to RemoveNonManifoldVertex

This commit is contained in:
ganovelli 2008-11-12 16:00:27 +00:00
parent e37cca54a3
commit a5cbc8c7f8
1 changed files with 5 additions and 2 deletions

View File

@ -480,15 +480,18 @@ private:
{
int count_vd = CountNonManifoldVertexFF(m,true);
int count_fd = UpdateSelection<MeshType>::FaceFromVertexLoose(m);
int count_removed = 0;
FaceIterator fi;
for(fi=m.face.begin(); fi!=m.face.end();++fi)
if(!(*fi).IsD() && (*fi).IsS())
Allocator<MeshType>::DeleteFace(m,*fi);
VertexIterator vi;
for(vi=m.vert.begin(); vi!=m.vert.end();++vi)
if(!(*vi).IsD() && (*vi).IsS())
if(!(*vi).IsD() && (*vi).IsS()) {
++count_removed;
Allocator<MeshType>::DeleteVertex(m,*vi);
}
return count_removed;
}