From b543ff311e7d48aa560ab4f3a71c6aafc2ac1664 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Mon, 12 Jul 2010 13:21:12 +0000 Subject: [PATCH] fixed gcc compatibility issue --- vcg/complex/trimesh/closest.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/closest.h b/vcg/complex/trimesh/closest.h index 78d34ae8..a603a684 100644 --- a/vcg/complex/trimesh/closest.h +++ b/vcg/complex/trimesh/closest.h @@ -429,9 +429,10 @@ namespace vcg { MarkerFace mf; mf.SetMesh(&mesh); typedef vcg::RayTriangleIntersectionFunctor FintFunct; + FintFunct fintfunct; Ray3 _ray1=_ray; _ray1.Normalize(); - FaceType *f=gr.DoRay(FintFunct(),mf,_ray1,_maxDist,_t); + FaceType *f=gr.DoRay(fintfunct,mf,_ray1,_maxDist,_t); typename GRID::CoordType dir=_ray.Direction(); dir.Normalize(); typename GRID::CoordType int_point=_ray.Origin()+_ray1.Direction()*_t;