added the missing PerVertexNormalizedPerFaceNormalized
This commit is contained in:
parent
1a38451a1a
commit
91cbd0047f
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
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
|
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() )
|
if( !(*vi).IsD() && (*vi).IsRW() )
|
||||||
(*vi).N().Normalize();
|
(*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)
|
static void PerFaceRW(ComputeMeshType &m, bool normalize=false)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue