diff --git a/vcg/complex/algorithms/update/quality.h b/vcg/complex/algorithms/update/quality.h index c6dc7ebd..df86f2db 100644 --- a/vcg/complex/algorithms/update/quality.h +++ b/vcg/complex/algorithms/update/quality.h @@ -230,11 +230,11 @@ static void FaceArea(MeshType &m) (*fi).Q()=vcg::DoubleArea(*fi)/2; } -static void VertexFromPlane(MeshType &m, Plane3 &pl) +static void VertexFromPlane(MeshType &m, const Plane3 &pl) { VertexIterator vi; for(vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD()) - (*vi).Q() =Distance(pl,(*vi).cP()); + (*vi).Q() =DistancePlanePoint(pl,(*vi).cP()); } static void VertexFromGaussianCurvature(MeshType &m)