From f22b8bef253c293f409eba562a66c0580643e3b8 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Tue, 23 Jul 2013 11:22:06 +0000 Subject: [PATCH] uncommented some code to find which vertex fix on poisson solving --- .../algorithms/parametrization/poisson_solver.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vcg/complex/algorithms/parametrization/poisson_solver.h b/vcg/complex/algorithms/parametrization/poisson_solver.h index fd8cfb40..0920b4ca 100644 --- a/vcg/complex/algorithms/parametrization/poisson_solver.h +++ b/vcg/complex/algorithms/parametrization/poisson_solver.h @@ -130,13 +130,13 @@ class PoissonSolver if (vt1->IsD())continue; if (!vt0->IsB())continue; if (!vt1->IsB())continue; -// ScalarType d_test=(vt0->P()-vt1->P()).Norm(); - ScalarType Dx=fabs(vt0->P().X()-vt1->P().X()); - ScalarType Dy=fabs(vt0->P().Y()-vt1->P().Y()); - ScalarType Dz=fabs(vt0->P().Z()-vt1->P().Z()); + ScalarType d_test=(vt0->P()-vt1->P()).Norm(); +// ScalarType Dx=fabs(vt0->P().X()-vt1->P().X()); +// ScalarType Dy=fabs(vt0->P().Y()-vt1->P().Y()); +// ScalarType Dz=fabs(vt0->P().Z()-vt1->P().Z()); -// ScalarType d_test=std::max(Dx,std::max(Dy,Dz)); - ScalarType d_test=std::max(fabs(Dx-Dy),std::max(fabs(Dx-Dz),fabs(Dy-Dz))); + //ScalarType d_test=std::max(Dx,std::max(Dy,Dz)); + //ScalarType d_test=std::max(fabs(Dx-Dy),std::max(fabs(Dx-Dz),fabs(Dy-Dz))); if (d_test>dmax) { dmax=d_test;