Added check on deleted faces in RemoveDegenerateFace

This commit is contained in:
Paolo Cignoni 2008-03-11 14:16:40 +00:00
parent 3d4222b231
commit 7c37f033e1
1 changed files with 11 additions and 5 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.57 2008/03/06 08:37:16 cignoni
added HasConsistentPerWedgeTexCoord
Revision 1.56 2008/01/24 11:52:05 cignoni
corrected small bug in RemoveDuplicateVertex
@ -455,6 +458,8 @@ private:
int count_fd = 0;
for(fi=m.face.begin(); fi!=m.face.end();++fi)
if(!(*fi).IsD())
{
if((*fi).V(0) == (*fi).V(1) ||
(*fi).V(0) == (*fi).V(2) ||
(*fi).V(1) == (*fi).V(2) )
@ -462,6 +467,7 @@ private:
count_fd++;
Allocator<MeshType>::DeleteFace(m,*fi);
}
}
return count_fd;
}