harmless clang warning

This commit is contained in:
Paolo Cignoni 2014-11-04 10:13:35 +00:00
parent fa8690e457
commit ab21f5437c
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ int main( )
ExactVec.push_back(p);
vcg::Point3f off = vcg::math::GeneratePointInUnitBallUniform<float>(rnd);
p+=off*scaleFac;
float w = std::max(0.0, 1.0f-fabs(vcg::SignedDistancePlanePoint(pl,p))/scaleFac);
float w = std::max(0.0f, 1.0f-fabs(vcg::SignedDistancePlanePoint(pl,p))/scaleFac);
PerturbVec.push_back(p);
WeightVec.push_back(w*w); // as weight we use the square of (1-distance)
}