Commit 60774dbd authored by Isaak Lim's avatar Isaak Lim

fixed the stop criterion

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@679 fdac6126-5c0c-442c-9429-916003d36597
parent e3f061f0
......@@ -193,7 +193,7 @@ size_t McDecimaterT<Mesh>::decimate_to_faces(size_t _nv, size_t _nf) {
int lastLegalCollapses = -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
typename Mesh::HalfedgeHandle bestHandle(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment