From d2cdb34aa278fa78d470b713ffe79f58250322fc Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 9 Nov 2006 17:26:24 +0000 Subject: [PATCH] Corrected RemoveNonManifoldFace --- vcg/complex/trimesh/clean.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/vcg/complex/trimesh/clean.h b/vcg/complex/trimesh/clean.h index 18aaf10d..94d5a1a5 100644 --- a/vcg/complex/trimesh/clean.h +++ b/vcg/complex/trimesh/clean.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.42 2006/10/15 07:31:22 cignoni +typenames and qualifiers for gcc compliance + Revision 1.41 2006/10/09 20:06:46 cignoni Added Remove NonManifoldFace @@ -406,18 +409,25 @@ private: (!IsManifold(*fi,2))) ToDelVec.push_back(&*fi); } - + for(int i=0;iIsD()) + { FaceType &ff= *ToDelVec[i]; if ((!IsManifold(ff,0))|| (!IsManifold(ff,1))|| (!IsManifold(ff,2))) - for(int j=0;j<3;++j) - if(!face::IsBorder(ff,j)) vcg::face::FFDetach(ff,j); - ff.SetD(); - count_fd++; - m.fn--; + { + for(int j=0;j<3;++j) + if(!face::IsBorder(ff,j)) + vcg::face::FFDetach(ff,j); + + ff.SetD(); + count_fd++; + m.fn--; + } + } } return count_fd; }