Rewrote the template of ComputeNormal functions to a more readable form.

This commit is contained in:
Paolo Cignoni 2007-01-11 10:13:11 +00:00
parent 349a05f6f1
commit d72aabbe64
1 changed files with 7 additions and 4 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.39 2006/07/12 12:14:31 zifnab1974
changes for compilation on linux. Not sure about using either SphereOfTriangle or SphereOfTetra, please check.
Revision 1.38 2006/07/06 12:45:08 ganovelli
added SmallestEnclosingSphere
@ -1251,11 +1254,11 @@ inline void Nexts( BaseFaceType *&f,int &z )
namespace face
{
template <class MyVertex, class MyEdge, class MyFace>
void ComputeNormal(FACE_TYPE<MyVertex,MyEdge,MyFace> &f) { f.N() = vcg::Normal< FACE_TYPE<MyVertex,MyEdge,MyFace> >(f); }
template <class FaceType>
void ComputeNormal(FaceType &f) { f.N() = vcg::Normal< FaceType >(f); }
template <class MyVertex, class MyEdge, class MyFace>
void ComputeNormalizedNormal(FACE_TYPE<MyVertex,MyEdge,MyFace> &f) { f.N() = vcg::NormalizedNormal< FACE_TYPE<MyVertex,MyEdge,MyFace> >(f); }
template <class FaceType>
void ComputeNormalizedNormal(FaceType &f) { f.N() = vcg::NormalizedNormal< FaceType >(f); }
}
//@}