From f36832fbdea8cc49589088f2cf3dfc2c691d2892 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Fri, 9 Sep 2005 11:11:15 +0000 Subject: [PATCH] #included for std::numeric_limits::max() and corrected parameters bug in old GetClosest(); --- vcg/space/index/grid_static_ptr.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/grid_static_ptr.h b/vcg/space/index/grid_static_ptr.h index d5da5b77..2a0ca4f3 100644 --- a/vcg/space/index/grid_static_ptr.h +++ b/vcg/space/index/grid_static_ptr.h @@ -24,6 +24,10 @@ History $Log: not supported by cvs2svn $ +Revision 1.16 2005/09/09 11:01:02 m_di_benedetto +Modified GetClosest(): now it uses a functor for distance calculation. +Added comments and a GetClosest() method with backward compatibility. + Revision 1.15 2005/08/26 09:27:58 cignoni Added a templated version of SetBBox @@ -79,6 +83,7 @@ Initial commit #include #include +#include #include #include @@ -412,7 +417,7 @@ namespace vcg { } }; const ScalarType maxDist = std::numeric_limits::max(); - return (this->GetClosest(p, min_dist, res)); + return (this->GetClosest(p, maxDist, BackCompDist(), min_dist, res)); } /// Inserisce una mesh nella griglia. Nota: prima bisogna