From d391c5f9f6fbdfae2991321c8acde68dad2cd7d0 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Wed, 6 Dec 2006 12:59:13 +0000 Subject: [PATCH] added max distance to rayIterator --- vcg/complex/trimesh/closest.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/closest.h b/vcg/complex/trimesh/closest.h index 162de593..a611fccd 100644 --- a/vcg/complex/trimesh/closest.h +++ b/vcg/complex/trimesh/closest.h @@ -24,6 +24,10 @@ History $Log: not supported by cvs2svn $ +Revision 1.26 2006/11/21 16:06:54 ponchio +passing VDistFunct() to functions wanting a reference, not a value +(why a reference btw?) + Revision 1.25 2006/11/13 13:13:49 ponchio Added usual typename. @@ -429,7 +433,7 @@ namespace vcg { typedef typename MESH::FaceType FaceType; typedef typename MESH::ScalarType ScalarType; - TriRayIterator(GridType &_Si):RayBaseType(_Si,FintFunct()){} + TriRayIterator(GridType &_Si,const ScalarType &max_d):RayBaseType(_Si,FintFunct(),max_d){} // Commented out: it seems unuseful and make gcc complain. p. void SetMesh(MeshType *m)