Added a needed Require Normal Components
This commit is contained in:
parent
781c333821
commit
610e8e49c8
|
@ -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() )
|
||||
|
|
Loading…
Reference in New Issue