Computing per vertex normals from current face normals works also with polygonal faces now.

This commit is contained in:
giorgiomarcias 2015-09-13 15:37:13 +00:00
parent f0c3d52849
commit 3323ae51af
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ static void PerVertexFromCurrentFaceNormal(ComputeMeshType &m)
for(fi=m.face.begin();fi!=m.face.end();++fi)
if( !(*fi).IsD())
{
for(int j=0; j<3; ++j)
for(int j=0; j<(*fi).VN(); ++j)
if( !(*fi).V(j)->IsD())
(*fi).V(j)->N() += (*fi).cN();
}