API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::booleanOper Method
OdDb3dSolid::booleanOper Method
Syntax
C++
virtual OdResult booleanOper(OdDb::BoolOperType operation, OdDb3dSolid* solid);
Parameters 
Description 
OdDb::BoolOperType operation 
[in] Type of Boolean operation.  
OdDb3dSolid* solid 
[out] Pointer to other solid object.
 

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

Performs a Boolean operation between this solid and another solid object. 

 

Result of the Boolean operation will be written to this solid object. 

Possible operation types are:

  • kBoolUnite - unites two solids into one.
  • kBoolIntersect - returns the intersection of two solids.
  • kBoolSubtract - subtracts the second solid from the first one.
Copyright © 2002–2020. Open Design Alliance. All rights reserved.