changed float to ScalarType in VertexSaturate function

This commit is contained in:
Nico Pietroni 2016-05-01 15:32:57 +00:00
parent 694ffd7cb0
commit d91e861ab5
1 changed files with 2 additions and 2 deletions

View File

@ -347,8 +347,8 @@ static void VertexSaturate(MeshType &m, ScalarType gradientThr=1.0)
face::VVStarVF<FaceType>(vc,star); face::VVStarVF<FaceType>(vc,star);
for(vvi=star.begin();vvi!=star.end();++vvi ) for(vvi=star.begin();vvi!=star.end();++vvi )
{ {
float &qi = (*vvi)->Q(); ScalarType &qi = (*vvi)->Q();
float distGeom = Distance((*vvi)->cP(),vc->cP()) / gradientThr; ScalarType distGeom = Distance((*vvi)->cP(),vc->cP()) / gradientThr;
// Main test if the quality varies more than the geometric displacement we have to lower something. // Main test if the quality varies more than the geometric displacement we have to lower something.
if( distGeom < fabs(qi - vc->Q())) if( distGeom < fabs(qi - vc->Q()))
{ {