API Reference > FacetModeler Namespace > Classes > Contour2D Class > Contour2D Methods > Contour2D::nearestParam Method
Contour2D::nearestParam Method
Syntax
C++
double nearestParam(const OdGePoint2d& ptTest, OdGePoint2d* ptNearest = NULL) const;
Parameters 
Description 
const OdGePoint2d& ptTest 
[in] Point to check.  
OdGePoint2d* ptNearest = NULL 
[out] (Optional) The nearest point on the contour for the given point ptTest.
 

Nearest parameter on contour.

Gets the nearest parameter and (optional) point on the contour for the given 2D point. 

 

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