From ab21f5437cdd53738f9d73ea910454cd0395ffe0 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 4 Nov 2014 10:13:35 +0000 Subject: [PATCH] harmless clang warning --- apps/sample/trimesh_fitting/trimesh_fitting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sample/trimesh_fitting/trimesh_fitting.cpp b/apps/sample/trimesh_fitting/trimesh_fitting.cpp index 52f1f524..ecc8d6c6 100644 --- a/apps/sample/trimesh_fitting/trimesh_fitting.cpp +++ b/apps/sample/trimesh_fitting/trimesh_fitting.cpp @@ -90,7 +90,7 @@ int main( ) ExactVec.push_back(p); vcg::Point3f off = vcg::math::GeneratePointInUnitBallUniform(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) }