added the missing PerVertexNormalizedPerFaceNormalized

This commit is contained in:
Paolo Cignoni 2007-07-12 23:11:35 +00:00
parent 1a38451a1a
commit 91cbd0047f
1 changed files with 14 additions and 5 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.13 2007/01/10 17:25:14 matteodelle
*** empty log message ***
Revision 1.12 2006/11/07 15:13:56 zifnab1974
Necessary changes for compilation with gcc 3.4.6. Especially the hash function is a problem
@ -167,6 +170,12 @@ PerVertexPerFace(m);
if( !(*vi).IsD() && (*vi).IsRW() )
(*vi).N().Normalize();
}
static void PerVertexNormalizedPerFaceNormalized(ComputeMeshType &m)
{
PerVertexNormalizedPerFace(m);
FaceIterator fi;
for(fi=m.face.begin();fi!=m.face.end();++fi)
if( !(*fi).IsD() ) (*fi).N().Normalize();}
static void PerFaceRW(ComputeMeshType &m, bool normalize=false)
{