API Reference > FacetModeler Namespace > Classes > Profile2D Class > Profile2D Methods > Profile2D::isValidRegion Method
Profile2D::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 orientations (e.g., 8 shape).
  • true otherwise.

Checks whether this profile contains only closed contours and coincides with a directional boundary of an open 2D region. 

 

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