API Reference > OdGe Classes > OdGeCurve3d Class > OdGeCurve3d Methods > getClosestPointTo Method > OdGeCurve3d::getClosestPointTo Method (OdGePoint3d&, OdGePointOnCurve3d&, OdGeTol&)
OdGeCurve3d::getClosestPointTo Method (OdGePoint3d&, OdGePointOnCurve3d&, OdGeTol&)
Syntax
C++
void getClosestPointTo(const OdGePoint3d& point, OdGePointOnCurve3d& pntOnCrv, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint3d& point 
[in] Any 3D point.  
OdGePointOnCurve3d& pntOnCrv 
[out] Receives the closest point on this curve.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

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

 

By default this function throws the exception "not Implemented". Should be implemented in derived classes.

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