From b686bd1d3185b7a34d971d7ed3aa91de8168830a Mon Sep 17 00:00:00 2001 From: granzuglia Date: Wed, 15 Jul 2009 16:29:10 +0000 Subject: [PATCH] changes in order to compile with gcc 3.x --- vcg/space/index/space_iterators.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcg/space/index/space_iterators.h b/vcg/space/index/space_iterators.h index 5194e230..9a5f5947 100644 --- a/vcg/space/index/space_iterators.h +++ b/vcg/space/index/space_iterators.h @@ -110,22 +110,22 @@ namespace vcg{ dist=(r.Origin()-goal).Norm(); const float LocalMaxScalar = (std::numeric_limits::max)(); - const float EPSILON = 1e-50f; + const float EPS = 1e-50f; /* Parametri della linea */ ScalarType tx,ty,tz; - if( fabs(r.Direction().X())>EPSILON ) + if( fabs(r.Direction().X())>EPS ) tx = (gx-r.Origin().X())/r.Direction().X(); else tx =LocalMaxScalar; - if( fabs(r.Direction().Y())>EPSILON ) + if( fabs(r.Direction().Y())>EPS) ty = (gy-r.Origin().Y())/r.Direction().Y(); else ty =LocalMaxScalar; - if( fabs(r.Direction().Z())>EPSILON ) + if( fabs(r.Direction().Z())>EPS ) tz = (gz-r.Origin().Z())/r.Direction().Z(); else tz =LocalMaxScalar;