API Reference > FacetModeler Namespace > Classes > Contour2D Class > Contour2D Methods > Contour2D::contains Method
Contour2D::contains Method
Syntax
C++
bool contains(const OdGePoint2d& ptPoint, bool* pOnBorder = NULL, const OdGeTol& gTol = FMGeGbl::gTol) const;
Parameters 
Description 
const OdGePoint2d& ptPoint 
[in] Point to check.  
bool* pOnBorder = NULL 
[out] (Optional) true if the point is located on the contour border.  
const OdGeTol& gTol = FMGeGbl::gTol 
[in] Tolerance.
 

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

Checks whether a point is inside the contour, at its boundary, or outside. 

 

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