From 3e7b2267f041ff2b9b30a8d7e7b73ec65765de07 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 2 Dec 2009 15:11:00 +0000 Subject: [PATCH] added a missing const to the distance functor --- vcg/simplex/vertex/distance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/simplex/vertex/distance.h b/vcg/simplex/vertex/distance.h index 1867be72..6e3434bf 100644 --- a/vcg/simplex/vertex/distance.h +++ b/vcg/simplex/vertex/distance.h @@ -56,7 +56,7 @@ template * @remarks The operator returns true if the closest distance is less than input reject distance. * */ - inline bool operator () (const VERTEXTYPE & v, const Point3 & p, SCALARTYPE & minDist, Point3 & q) + inline bool operator () (const VERTEXTYPE & v, const Point3 & p, SCALARTYPE & minDist, Point3 & q) const { // convert the coordinates of p from SCALARTYPE to VERTEXTYPE::ScalarType type const Point3 fp = Point3::Construct(p);