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

true if the point lies inside the profile or on its border, or false otherwise.

Checks whether the specified point lies inside the profile or on its border. 

 

Contours of the profile should be closed. The return value is equal to (iNumCCW - iNumCW > 0), where iNum(C)CW is the number of (C)CW contours containing the point. The default value (e.g., an empty profile) is true.

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