From 6ba1493e3eefd3d0dfb74c1a8372d340c85b11ec Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 23 Aug 2014 01:35:52 +0000 Subject: [PATCH] Small changes for float/double independence --- vcg/complex/algorithms/update/curvature.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vcg/complex/algorithms/update/curvature.h b/vcg/complex/algorithms/update/curvature.h index 3b8af320..a8f0bb78 100644 --- a/vcg/complex/algorithms/update/curvature.h +++ b/vcg/complex/algorithms/update/curvature.h @@ -692,12 +692,12 @@ static void MeanAndGaussian(MeshType & m) CoordType c=m.bbox.Center(); float maxRad = m.bbox.Diag()/2.0f; - for(int i=0;i @@ -710,8 +710,8 @@ static void MeanAndGaussian(MeshType & m) const float curRatio = minRatio + (maxRatio-minRatio)*q; float pd1Len = sqrt(1.0/(1+curRatio*curRatio)); float pd2Len = curRatio * pd1Len; - assert(fabs(curRatio - pd2Len/pd1Len)<0.0000001); - assert(fabs(pd1Len*pd1Len + pd2Len*pd2Len - 1.0f)<0.0001); +// assert(fabs(curRatio - pd2Len/pd1Len)<0.0000001); +// assert(fabs(pd1Len*pd1Len + pd2Len*pd2Len - 1.0f)<0.0001); m.vert[i].PD1() *= pd1Len; m.vert[i].PD2() *= pd2Len; }