diff --git a/vcg/complex/algorithms/parametrization/poisson_solver.h b/vcg/complex/algorithms/parametrization/poisson_solver.h index 7c3b002d..b19d13f5 100644 --- a/vcg/complex/algorithms/parametrization/poisson_solver.h +++ b/vcg/complex/algorithms/parametrization/poisson_solver.h @@ -140,7 +140,7 @@ class PoissonSolver assert(v1!=NULL); }*/ - void FindFarestVert(VertexType* &v0,VertexType* &v1) + void FindFarthestVert(VertexType* &v0,VertexType* &v1) { UpdateBounding::Box(mesh); @@ -163,6 +163,7 @@ class PoissonSolver ScalarType d_test=(vt0->P()-vt1->P()).Norm(); if (d_test>dmax) { + dmax=d_test; v0=vt0; v1=vt1; } @@ -686,7 +687,7 @@ public: { VertexType *v0; VertexType *v1; - FindFarestVert(v0,v1); + FindFarthestVert(v0,v1); if (v0==v1) { // tri::io::ExporterPLY::Save(mesh,"./parametrized.ply");