From d91e861ab5eebc8b64f6f5e26196d8a15ef08dcf Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Sun, 1 May 2016 15:32:57 +0000 Subject: [PATCH] changed float to ScalarType in VertexSaturate function --- vcg/complex/algorithms/update/quality.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())) {