Added check on deleted faces in RemoveDegenerateFace
This commit is contained in:
parent
3d4222b231
commit
7c37f033e1
|
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.56 2008/01/24 11:52:05 cignoni
|
||||||
corrected small bug in RemoveDuplicateVertex
|
corrected small bug in RemoveDuplicateVertex
|
||||||
|
|
||||||
|
|
@ -455,6 +458,8 @@ private:
|
||||||
int count_fd = 0;
|
int count_fd = 0;
|
||||||
|
|
||||||
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).V(0) == (*fi).V(1) ||
|
if((*fi).V(0) == (*fi).V(1) ||
|
||||||
(*fi).V(0) == (*fi).V(2) ||
|
(*fi).V(0) == (*fi).V(2) ||
|
||||||
(*fi).V(1) == (*fi).V(2) )
|
(*fi).V(1) == (*fi).V(2) )
|
||||||
|
|
@ -462,6 +467,7 @@ private:
|
||||||
count_fd++;
|
count_fd++;
|
||||||
Allocator<MeshType>::DeleteFace(m,*fi);
|
Allocator<MeshType>::DeleteFace(m,*fi);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return count_fd;
|
return count_fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue