Added a needed Require Normal Components

This commit is contained in:
Paolo Cignoni 2017-03-13 15:46:58 +01:00
parent 781c333821
commit 610e8e49c8
1 changed files with 8 additions and 7 deletions

View File

@ -92,7 +92,7 @@ static void PerVertex(ComputeMeshType &m)
for(FaceIterator f=m.face.begin();f!=m.face.end();++f)
if( !(*f).IsD() && (*f).IsR() )
{
typename FaceType::NormalType t = vcg::TriangleNormal(*f);
typename VertexType::NormalType t = vcg::TriangleNormal(*f);
for(int j=0; j<(*f).VN(); ++j)
if( !(*f).V(j)->IsD() && (*f).V(j)->IsRW() )
@ -102,6 +102,7 @@ static void PerVertex(ComputeMeshType &m)
static void PerFacePolygonal(ComputeMeshType &m)
{
RequirePerFaceNormal(m);
for(FaceIterator fi=m.face.begin();fi!=m.face.end();++fi)
{
if( !(*fi).IsD() )