API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > getLocalClosestPoints Method > OdGeCurve2d::getLocalClosestPoints Method (OdGePoint2d&, OdGePointOnCurve2d&, OdGeInterval*, OdGeTol&)
OdGeCurve2d::getLocalClosestPoints Method (OdGePoint2d&, OdGePointOnCurve2d&, OdGeInterval*, OdGeTol&)
Syntax
C++
void getLocalClosestPoints(const OdGePoint2d& point, OdGePointOnCurve2d& approxPnt, const OdGeInterval* nbhd = NULL, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint2d& point 
[in] Input 2D point.  
OdGePointOnCurve2d& approxPnt 
[in/out] Input/output point on this curve.  
const OdGeInterval* nbhd = NULL 
[in] Input interval for searching on this curve.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Searches for the local minimum distance between this curve and the input point using the input point as an initial guess.

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

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