API Reference > OdDb Classes > OdDbRegion Class > OdDbRegion Methods > OdDbRegion::getPlane Method
OdDbRegion::getPlane Method
Syntax
C++
virtual OdResult getPlane(OdGePlane& plane, OdDb::Planarity& planarity) const;
Parameters 
Description 
OdGePlane& plane 
[out] Reference to the OdGePlane object that stores the containing plane.  
OdDb::Planarity& planarity 
[out] Reference to a variable containing information about planarity of the OdGePlane object. 
  • eOk — if successful.
  • eWrongObjectType — if the region has unplanar face.
  • eInvalidInput — if the faces of the region have different planes.
  • eDegenerateGeometry — if an error is found in the topology.
  • eGeneralModelingFailure — if a fatal error is detected.

Gets the OdGePlane object that contains the region. If the region is NULL, then the WCS X-Y plane is returned. 

 

If typeVer is NULL, this function uses the type and version of this region entity.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.