API Reference > FacetModeler Namespace > Classes > Contour2D Class > Contour2D Methods > Contour2D::isOn Method
Contour2D::isOn Method
Syntax
C++
bool isOn(const OdGePoint2d& ptTest, double* pParam = NULL, const OdGeTol& gTol = FMGeGbl::gTol) const;
Parameters 
Description 
const OdGePoint2d& ptTest 
[in] Point to check.  
double* pParam = NULL 
[out] (Optional) The contour's resulting parameter at the point ptTest.  
const OdGeTol& gTol = FMGeGbl::gTol 
[in] Tolerance.
 

true if the point lies on the contour with the specified tolerance, or false otherwise.

Checks whether the 2D point is located on the contour with the given tolerance. If the point is on the contour, the method calculates the parameter value at this point. 

 

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