changed float to ScalarType in VertexSaturate function
This commit is contained in:
parent
694ffd7cb0
commit
d91e861ab5
|
@ -347,8 +347,8 @@ static void VertexSaturate(MeshType &m, ScalarType gradientThr=1.0)
|
|||
face::VVStarVF<FaceType>(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()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue