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; }