diff --git a/vcg/complex/edgemesh/unify.h b/vcg/complex/edgemesh/unify.h index 88b0c16e..3a11f6a2 100644 --- a/vcg/complex/edgemesh/unify.h +++ b/vcg/complex/edgemesh/unify.h @@ -140,7 +140,7 @@ namespace vcg bool lastRound ; if(em.vn){ - vcg::edge::UpdateBounding::Box(em); + vcg::edg::UpdateBounding::Box(em); //Grid().SetBBox(em.bbox); std::vector pv; @@ -162,7 +162,7 @@ namespace vcg (*pvi).v->SetD(); ScalarType max_dist=em.bbox.Diag(); ScalarType min_dist = 0; - p = (vcg::trimesh::GetClosestVertex( em, Grid(), vpos, + p = (vcg::tri::GetClosestVertex( em, Grid(), vpos, max_dist, min_dist))->P(); //closest = Grid().GetClosest(vpos, max_dist, BackCompDist(), eps, p,tm);