From 7defccba1b0e0c3ccf8da158e2575cd6cd242fba Mon Sep 17 00:00:00 2001 From: ganovelli Date: Tue, 30 Sep 2008 11:01:09 +0000 Subject: [PATCH] getclosest update for \the new definition of distance functor --- vcg/space/index/aabb_binary_tree/aabb_binary_tree.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/aabb_binary_tree/aabb_binary_tree.h b/vcg/space/index/aabb_binary_tree/aabb_binary_tree.h index d23f7234..e191abae 100644 --- a/vcg/space/index/aabb_binary_tree/aabb_binary_tree.h +++ b/vcg/space/index/aabb_binary_tree/aabb_binary_tree.h @@ -95,7 +95,8 @@ public: template inline ObjPtr GetClosest( - OBJPOINTDISTFUNCTOR & _getPointDistance, OBJMARKER & _marker, const CoordType & _p, const ScalarType & _maxDist, + OBJPOINTDISTFUNCTOR & _getPointDistance, OBJMARKER & _marker, + const typename OBJPOINTDISTFUNCTOR::QueryType & _p, const ScalarType & _maxDist, ScalarType & _minDist, CoordType & _closestPt) { (void)_marker; return (AABBBinaryTreeClosest::Closest(this->tree, _getPointDistance, _p, _maxDist, _minDist, _closestPt));