Computing per vertex normals from current face normals works also with polygonal faces now.
This commit is contained in:
parent
f0c3d52849
commit
3323ae51af
|
|
@ -206,7 +206,7 @@ static void PerVertexFromCurrentFaceNormal(ComputeMeshType &m)
|
||||||
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
||||||
if( !(*fi).IsD())
|
if( !(*fi).IsD())
|
||||||
{
|
{
|
||||||
for(int j=0; j<3; ++j)
|
for(int j=0; j<(*fi).VN(); ++j)
|
||||||
if( !(*fi).V(j)->IsD())
|
if( !(*fi).V(j)->IsD())
|
||||||
(*fi).V(j)->N() += (*fi).cN();
|
(*fi).V(j)->N() += (*fi).cN();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue