diff --git a/vcg/complex/algorithms/update/quality.h b/vcg/complex/algorithms/update/quality.h index 27aadf25..55d73b26 100644 --- a/vcg/complex/algorithms/update/quality.h +++ b/vcg/complex/algorithms/update/quality.h @@ -347,8 +347,8 @@ static void VertexSaturate(MeshType &m, ScalarType gradientThr=1.0) face::VVStarVF(vc,star); for(vvi=star.begin();vvi!=star.end();++vvi ) { - float &qi = (*vvi)->Q(); - float distGeom = Distance((*vvi)->cP(),vc->cP()) / gradientThr; + ScalarType &qi = (*vvi)->Q(); + ScalarType distGeom = Distance((*vvi)->cP(),vc->cP()) / gradientThr; // Main test if the quality varies more than the geometric displacement we have to lower something. if( distGeom < fabs(qi - vc->Q())) {