fixed the stop criterion

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@679 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Isaak Lim
2012-09-18 10:54:01 +00:00
parent e3f061f0f0
commit 60774dbdfa

View File

@@ -193,7 +193,7 @@ size_t McDecimaterT<Mesh>::decimate_to_faces(size_t _nv, size_t _nf) {
int lastLegalCollapses = -1; int lastLegalCollapses = -1;
int beforeLastLegalCollapses = -1; int beforeLastLegalCollapses = -1;
while ( (contraintsOnly && !foundNoLegalCollapsesThrice) && (_nv < nv) && (_nf < nf) ) { while ( !foundNoLegalCollapsesThrice && (_nv < nv) && (_nf < nf) ) {
// Optimal id and value will be collected during the random sampling // Optimal id and value will be collected during the random sampling
typename Mesh::HalfedgeHandle bestHandle(-1); typename Mesh::HalfedgeHandle bestHandle(-1);