From 029aa3cdec5117d5fba33fecdffedff9f2e153b3 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 13 Oct 2005 08:38:00 +0000 Subject: [PATCH] removed the access to the face member function normal and substituted with vcg::normal(*f); --- vcg/complex/trimesh/update/normal.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/update/normal.h b/vcg/complex/trimesh/update/normal.h index 82e1176c..8f33c999 100644 --- a/vcg/complex/trimesh/update/normal.h +++ b/vcg/complex/trimesh/update/normal.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2005/06/17 00:46:09 cignoni +Added a PerVertexNormalizedPerFace (vertex are face/area weighted AND normalized) + Revision 1.5 2005/04/01 13:04:55 fiorin Minor changes @@ -99,8 +102,9 @@ static void PerVertex(ComputeMeshType &m) for(f=m.face.begin();f!=m.face.end();++f) if( !(*f).IsD() && (*f).IsR() ) { - typename FaceType::NormalType t = (*f).Normal(); - + //typename FaceType::NormalType t = (*f).Normal(); + typename FaceType::NormalType t = vcg::Normal(*f); + for(int j=0; j<3; ++j) if( !(*f).V(j)->IsD() && (*f).V(j)->IsRW() ) (*f).V(j)->N() += t;