From 573ff87db23775b00e6d9d4c44ace8c6bf2755ac Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 29 Oct 2007 11:32:46 +0000 Subject: [PATCH] Added a missing IsD() test --- vcg/complex/trimesh/clean.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vcg/complex/trimesh/clean.h b/vcg/complex/trimesh/clean.h index ed1ed3d6..fe27ea0f 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.54 2007/10/16 16:46:53 cignoni +Added Allocator::DeleteFace and Allocator::DeleteVertex; Now the use of SetD() should be deprecated. + Revision 1.53 2007/07/24 07:09:49 cignoni Added remove degenerate vertex to manage vertex with NAN coords @@ -421,13 +424,14 @@ private: int count_fd = 0; for(fi=m.face.begin(); fi!=m.face.end();++fi) + if(!(*fi).IsD()) if( (*fi).V(0)->IsD() || (*fi).V(1)->IsD() || (*fi).V(2)->IsD() ) - { - count_fd++; - Allocator::DeleteFace(m,*fi); - } + { + count_fd++; + Allocator::DeleteFace(m,*fi); + } return count_vd; }