From 6f7db152b2788360d321577f8bdec1892ce1fb3a Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 5 Oct 2012 17:01:22 +0000 Subject: [PATCH] updated to the new eigen folder structure (something moved out from unsupported folder...) --- vcg/complex/algorithms/parametrization/poisson_solver.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vcg/complex/algorithms/parametrization/poisson_solver.h b/vcg/complex/algorithms/parametrization/poisson_solver.h index b19d13f5..c92f36ea 100644 --- a/vcg/complex/algorithms/parametrization/poisson_solver.h +++ b/vcg/complex/algorithms/parametrization/poisson_solver.h @@ -26,8 +26,6 @@ #define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET #include -#include -#include #include #include @@ -797,11 +795,12 @@ public: } ///then check if majority of faces are folded - if (!solve_global_fold)return true; - if (tri::Distortion::GloballyUnFolded(mesh)) + if (!solve_global_fold) return true; + if (tri::Distortion::GloballyUnFolded(mesh)) { tri::UV_Utils::GloballyMirrorX(mesh); - assert(!tri::Distortion::GloballyUnFolded(mesh)); + bool isUnfolded = tri::Distortion::GloballyUnFolded(mesh); + assert( ! isUnfolded); } return true; }