API Reference > FacetModeler Namespace > Classes > Contour2D Class > Contour2D Methods > Contour2D::isValidRegion Method
Contour2D::isValidRegion Method
Syntax
C++
bool isValidRegion(const OdGeTol& gTol = FMGeGbl::gTol) const;
Parameters 
Description 
const OdGeTol& gTol = FMGeGbl::gTol 
[in] Tolerance. 
  • false for empty and non-closed contours.
  • false if there are coincident bounds with opposite directions (e.g., O-O shape).
  • false if there are sub-contours with incorrect orientation (e.g., 8 shape).
  • true otherwise.

Checks whether this contour is closed and coincides with a directional boundary of an open 2D region. 

 

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