From e362aef041feb2fa26de86b546ec7d7423ec116d Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 7 May 2014 09:21:46 +0000 Subject: [PATCH] Corrected bug in the faux edge setting when loading polygonal meshes. --- wrap/io_trimesh/import_off.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap/io_trimesh/import_off.h b/wrap/io_trimesh/import_off.h index ead0d919..106768e6 100644 --- a/wrap/io_trimesh/import_off.h +++ b/wrap/io_trimesh/import_off.h @@ -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); }