Changed per vertex nomal computation to works with polygons
This commit is contained in:
parent
7dd839a8eb
commit
505fa04c73
|
@ -96,7 +96,7 @@ static void PerVertexClear(ComputeMeshType &m, bool ClearAllVertNormal=false)
|
|||
//typename FaceType::NormalType t = (*f).Normal();
|
||||
typename FaceType::NormalType t = vcg::Normal(*f);
|
||||
|
||||
for(int j=0; j<3; ++j)
|
||||
for(int j=0; j<(*f).VN(); ++j)
|
||||
if( !(*f).V(j)->IsD() && (*f).V(j)->IsRW() )
|
||||
(*f).V(j)->N() += t;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue