From eb6d41150eac9375b8ca2c357f6c9c4aaa5ddc9a Mon Sep 17 00:00:00 2001 From: ponchio Date: Wed, 20 Sep 2006 17:18:26 +0000 Subject: [PATCH] VDistFunct() at line 292 was passed as a temporary. Invalid under g++. Fixed. --- 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 5975d4ea..4b6b3b6b 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.21 2006/02/09 08:38:04 pietroni +sintax error corrected + Revision 1.20 2006/02/08 17:02:41 pietroni commented one GetClosestFace function ... the code is the same then getClosest that return barycentric coordinates @@ -286,8 +289,9 @@ namespace vcg { MarkerVert mv; mv.SetMesh(&mesh); typedef vcg::vertex::PointDistanceFunctor VDistFunct; + VDistFunct fn; return (gr.GetInSphere/**/ - (VDistFunct(),mv,_p,_r,_objectPtrs,_distances,_points)); + (fn, mv,_p,_r,_objectPtrs,_distances,_points)); } template