From a5cbc8c7f8b59ad3728d624fc2e2df9f67806fab Mon Sep 17 00:00:00 2001 From: ganovelli Date: Wed, 12 Nov 2008 16:00:27 +0000 Subject: [PATCH] added return to RemoveNonManifoldVertex --- vcg/complex/trimesh/clean.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/clean.h b/vcg/complex/trimesh/clean.h index 139d6d7d..9631e214 100644 --- a/vcg/complex/trimesh/clean.h +++ b/vcg/complex/trimesh/clean.h @@ -480,15 +480,18 @@ private: { int count_vd = CountNonManifoldVertexFF(m,true); int count_fd = UpdateSelection::FaceFromVertexLoose(m); + int count_removed = 0; FaceIterator fi; for(fi=m.face.begin(); fi!=m.face.end();++fi) if(!(*fi).IsD() && (*fi).IsS()) Allocator::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::DeleteVertex(m,*vi); - + } + return count_removed; }