Corrected bug in the faux edge setting when loading polygonal meshes.

This commit is contained in:
Paolo Cignoni 2014-05-07 09:21:46 +00:00
parent cf2495aaac
commit e362aef041
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ public:
// Consecutivity is in the space of the index of the polygon.
for(int qq=0;qq<3;++qq)
{
if( (indexTriangulatedVect[j+qq]+1)%int(indexTriangulatedVect.size()) == indexTriangulatedVect[j+(qq+1)%3])
if( (indexTriangulatedVect[j+qq]+1)%vert_per_face == indexTriangulatedVect[j+(qq+1)%3])
mesh.face[f+j/3].ClearF(qq);
else mesh.face[f+j/3].SetF(qq);
}