API Reference > OdDb Classes > OdDbCurvePE Class > OdDbCurvePE Methods > getClosestPointTo Method > OdDbCurvePE::getClosestPointTo Method (OdDbCurve*, OdGePoint3d&, OdGePoint3d&, bool)
OdDbCurvePE::getClosestPointTo Method (OdDbCurve*, OdGePoint3d&, OdGePoint3d&, bool)
Syntax
C++
virtual OdResult getClosestPointTo(const OdDbCurve* pCurve, const OdGePoint3d& givenPoint, OdGePoint3d& pointOnCurve, bool extend = false) const = 0;
Parameters 
Description 
const OdDbCurve* pCurve 
[in] Pointer to the curve.  
const OdGePoint3d& givenPoint 
[in] Given point.  
OdGePoint3d& pointOnCurve 
[out] Receives the closed point on this Curve object.  
bool extend = false 
[in] Extends this Curve object if and only if true. 

Returns eOk if successful, or an appropriate error code if not.

Returns the point on the specified Curve object closest to the given point. 

 

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