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

Returns the point on this curve closest to the specified curve, and the point on the other curve closest to this curve. 

 

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