From 5e52fd038cb5d8f2921667cb14573745e54ab31a Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 24 Jan 2008 11:52:05 +0000 Subject: [PATCH] corrected small bug in RemoveDuplicateVertex --- vcg/complex/trimesh/clean.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vcg/complex/trimesh/clean.h b/vcg/complex/trimesh/clean.h index fe27ea0f..815f2529 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.55 2007/10/29 11:32:46 cignoni +Added a missing IsD() test + Revision 1.54 2007/10/16 16:46:53 cignoni Added Allocator::DeleteFace and Allocator::DeleteVertex; Now the use of SetD() should be deprecated. @@ -359,15 +362,15 @@ private: } FaceIterator fi; for(fi = m.face.begin(); fi!=m.face.end(); ++fi) - for(k = 0; k < 3; ++k) - if( !(*fi).IsD() ) + if( !(*fi).IsD() ) + for(k = 0; k < 3; ++k) if( mp.find( (typename MeshType::VertexPointer)(*fi).V(k) ) != mp.end() ) { (*fi).V(k) = &*mp[ (*fi).V(k) ]; } - return deleted; - + if(RemoveDegenerateFlag) RemoveDegenerateFace(m); + return deleted; }