From 60774dbdfac60f5f5c3bc2808011b13052d4c0c1 Mon Sep 17 00:00:00 2001 From: Isaak Lim Date: Tue, 18 Sep 2012 10:54:01 +0000 Subject: [PATCH] fixed the stop criterion git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@679 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Tools/Decimater/McDecimaterT.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Tools/Decimater/McDecimaterT.cc b/src/OpenMesh/Tools/Decimater/McDecimaterT.cc index a0bf0248..f05289d8 100644 --- a/src/OpenMesh/Tools/Decimater/McDecimaterT.cc +++ b/src/OpenMesh/Tools/Decimater/McDecimaterT.cc @@ -193,7 +193,7 @@ size_t McDecimaterT::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);