From 15d93075849c05772d17fdd564a8351040677599 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 1 Jul 2014 10:12:49 +0000 Subject: [PATCH] Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType --- vcg/complex/algorithms/geodesic.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vcg/complex/algorithms/geodesic.h b/vcg/complex/algorithms/geodesic.h index bb87c847..0d04d596 100644 --- a/vcg/complex/algorithms/geodesic.h +++ b/vcg/complex/algorithms/geodesic.h @@ -72,7 +72,7 @@ public: float qrange = qmax-qmin; std::pair minmax = Stat::ComputePerVertexQualityMinMax(m); float range = minmax.second-minmax.first; - for(int i=0;i class AnisotropicDistance{ typedef typename MeshType::VertexType VertexType; typedef typename MeshType::ScalarType ScalarType; + typedef typename MeshType::CoordType CoordType; typedef typename MeshType::VertexIterator VertexIterator; typename MeshType::template PerVertexAttributeHandle wxH,wyH; @@ -126,7 +127,7 @@ public: ScalarType operator()( VertexType * v0, VertexType * v1) { - Point3f dd = v0->cP()-v1->cP(); + Point3f dd = Point3f::Construct(v0->cP()-v1->cP()); float x = (fabs(dd * wxH[v0])+fabs(dd *wxH[v1]))/2.0f; float y = (fabs(dd * wyH[v0])+fabs(dd *wyH[v1]))/2.0f;