fixed compiler error (added a double cast)

This commit is contained in:
granzuglia 2016-05-06 09:13:09 +00:00
parent 848a17e0fb
commit a5f3b19d9d
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ public:
for(VertexIterator vi=m.vert.begin();vi!=m.vert.end();++vi)
if( ! (*vi).IsD() && (*vi).IsW())
{
const double quality01squared = pow((vi->Q()-minQ)/(maxQ-minQ),2.0);
const double quality01squared = pow((double)((vi->Q()-minQ)/(maxQ-minQ)),2.0);
QH::Qd(*vi) *= 1.0 + quality01squared * (pp->QualityWeightFactor-1.0);
}
}