added a missing const to the distance functor
This commit is contained in:
parent
c749b3e143
commit
3e7b2267f0
|
@ -56,7 +56,7 @@ template <class SCALARTYPE>
|
||||||
* @remarks The operator returns true if the closest distance is less than input reject distance.
|
* @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
|
// convert the coordinates of p from SCALARTYPE to VERTEXTYPE::ScalarType type
|
||||||
const Point3<typename VERTEXTYPE::ScalarType> fp = Point3<typename VERTEXTYPE::ScalarType>::Construct(p);
|
const Point3<typename VERTEXTYPE::ScalarType> fp = Point3<typename VERTEXTYPE::ScalarType>::Construct(p);
|
||||||
|
|
Loading…
Reference in New Issue