added a missing const to the distance functor

This commit is contained in:
Paolo Cignoni 2009-12-02 15:11:00 +00:00
parent c749b3e143
commit 3e7b2267f0
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ template <class SCALARTYPE>
* @remarks The operator returns true if the closest distance is less than input reject distance.
*
*/
inline bool operator () (const VERTEXTYPE & v, const Point3<SCALARTYPE> & p, SCALARTYPE & minDist, Point3<SCALARTYPE> & q)
inline bool operator () (const VERTEXTYPE & v, const Point3<SCALARTYPE> & p, SCALARTYPE & minDist, Point3<SCALARTYPE> & q) const
{
// convert the coordinates of p from SCALARTYPE to VERTEXTYPE::ScalarType type
const Point3<typename VERTEXTYPE::ScalarType> fp = Point3<typename VERTEXTYPE::ScalarType>::Construct(p);