From b8f1e0f6126f2e13ed0f77586b422e82bcbf17f1 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 7 Feb 2008 10:24:51 +0000 Subject: [PATCH] added a missing IsD() check --- vcg/complex/trimesh/smooth.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/smooth.h b/vcg/complex/trimesh/smooth.h index acbf08d8..b535a3fc 100644 --- a/vcg/complex/trimesh/smooth.h +++ b/vcg/complex/trimesh/smooth.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log: not supported by cvs2svn $ +Revision 1.15 2007/11/05 23:47:20 cignoni +added selection to the pasodoble smoothing + Revision 1.14 2007/03/27 09:40:47 cignoni Changed use of selected to visited flags. Improved variable namings and comments @@ -686,7 +689,7 @@ void NormalSmooth(MESH_TYPE &m, typedef typename vcg::face::VFIterator VFLocalIterator; typename MESH_TYPE::FaceIterator fi; - for(fi=m.face.begin();fi!=m.face.end();++fi) + for(fi=m.face.begin();fi!=m.face.end();++fi) if(!(*fi).IsD()) { CoordType bc=Barycenter(*fi); // 1) Clear all the visited flag of faces that are vertex-adjacent to fi