From 4687fa762f2f723a95c698dc0a57623d261d1cfb Mon Sep 17 00:00:00 2001 From: ponchio Date: Mon, 13 Nov 2006 13:13:49 +0000 Subject: [PATCH] Added usual typename. --- vcg/complex/trimesh/closest.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vcg/complex/trimesh/closest.h b/vcg/complex/trimesh/closest.h index ec77c739..516a438c 100644 --- a/vcg/complex/trimesh/closest.h +++ b/vcg/complex/trimesh/closest.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.24 2006/11/12 02:41:03 pietroni +added normalization of normal in DoRay functions + Revision 1.23 2006/11/10 11:41:49 pietroni added DoRayFuntion that return interpolated normal @@ -355,10 +358,10 @@ namespace vcg { Ray3 _ray1=_ray; _ray1.Normalize(); FaceType *f=gr.DoRay(FintFunct(),mf,_ray1,_maxDist,_t); - GRID::CoordType dir=_ray.Direction(); + typename GRID::CoordType dir=_ray.Direction(); dir.Normalize(); - GRID::CoordType int_point=_ray.Origin()+_ray1.Direction()*_t; - GRID::ScalarType alfa,beta,gamma; + typename GRID::CoordType int_point=_ray.Origin()+_ray1.Direction()*_t; + typename GRID::ScalarType alfa,beta,gamma; if (f!=NULL) { f->InterpolationParameters(int_point, alfa, beta, gamma);