From 18f98129d808e2a8e66efce30c83b91b1887ea93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 26 Jan 2011 09:36:24 +0000 Subject: [PATCH] Fixed bug in decimater where boundary check was using the wrong halfege(Thanks to Michal Nociar for the patch) git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@363 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Tools/Decimater/DecimaterT.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Tools/Decimater/DecimaterT.cc b/src/OpenMesh/Tools/Decimater/DecimaterT.cc index eb88ed58..aae98f28 100644 --- a/src/OpenMesh/Tools/Decimater/DecimaterT.cc +++ b/src/OpenMesh/Tools/Decimater/DecimaterT.cc @@ -307,7 +307,7 @@ DecimaterT::is_collapse_legal(const CollapseInfo& _ci) // v0vl and v1vl must not both be boundary edges if (_ci.vl.is_valid() && mesh_.is_boundary(_ci.vlv1) && - mesh_.is_boundary(_ci.v0v1)) + mesh_.is_boundary(_ci.v0vl)) return false; // v0vr and v1vr must not be both boundary edges