added #include <vcg/complex/exception.h>

This commit is contained in:
Nico Pietroni 2013-03-30 15:31:57 +00:00
parent 8454fb5fc9
commit 01c0681291
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@
#include <vcg/complex/algorithms/update/flag.h> #include <vcg/complex/algorithms/update/flag.h>
#include <vcg/math/matrix44.h> #include <vcg/math/matrix44.h>
#include <vcg/complex/exception.h>
namespace vcg { namespace vcg {
namespace tri { namespace tri {
@ -160,7 +161,8 @@ static void PerFace(ComputeMeshType &m)
{ {
if(!HasPerFaceNormal(m)) throw vcg::MissingComponentException("PerFaceNormal"); if(!HasPerFaceNormal(m)) throw vcg::MissingComponentException("PerFaceNormal");
for(FaceIterator f=m.face.begin();f!=m.face.end();++f) for(FaceIterator f=m.face.begin();f!=m.face.end();++f)
if( !(*f).IsD() ) face::ComputeNormal(*f); if( !(*f).IsD() )
face::ComputeNormal(*f);
} }
/// \brief Calculates the vertex normal by averaging the current per-face normals. /// \brief Calculates the vertex normal by averaging the current per-face normals.