API Reference > OdDb Classes > OdDbRegion Class > OdDbRegion Methods > OdDbRegion::booleanOper Method
OdDbRegion::booleanOper Method
Syntax
C++
virtual OdResult booleanOper(OdDb::BoolOperType operation, OdDbRegion* otherRegion);
Parameters 
Description 
OdDb::BoolOperType operation 
[in] Type of Boolean operation.  
OdDbRegion* otherRegion 
[out] Pointer to other region object which also will contain the result of the Boolean operation.
 

Returns eOk if the Boolean operation is successful or an appropriate error code if not. If the region is null, eInvalidInput is returned.

Performs a Boolean operation between this and another region object. 

Possible operation types are:

  • kBoolUnite - unites two regions into one.
  • kBoolIntersect - returns the intersection of two regions.
  • kBoolSubtract - subtracts the region from the first one.

 

This method is implemented only for Spatial modeler and returns eNotImplementedYet status for other modelers.

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