API Reference > OdGe Classes > OdGeCurve3d Class > OdGeCurve3d Methods > closestPointTo Method > OdGeCurve3d::closestPointTo Method (OdGePoint3d &, double &, OdGeInterval*, OdGeTol&)
OdGeCurve3d::closestPointTo Method (OdGePoint3d &, double &, OdGeInterval*, OdGeTol&)
Syntax
C++
OdGePoint3d closestPointTo(const OdGePoint3d & point, double & param, const OdGeInterval* range, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint3d & point 
[in] Any 3D point.  
double & param 
[out] uv-coord of closest point.  
const OdGeInterval* range 
[in] interval of closest point.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Returns the point on this curve closest to the specified point. 

 

Native interval is not considered. If projection of the point does not lie in range-interval, the closest bound of the interval is returned. In case of uvBox == NULL closestPointTo(point, range, tol) is called where range is a native curves interval. An unbounded interval should not be used here.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.