API Reference > OdIfc Namespace > Classes > OdIfcModelerGeometry Class > OdIfcModelerGeometry Methods > boolean Method > OdIfcModelerGeometry::boolean Method (OdIfcModelerGeometryPtr, IfcBooleanOperator, IfcModelerKeep)
OdIfcModelerGeometry::boolean Method (OdIfcModelerGeometryPtr, IfcBooleanOperator, IfcModelerKeep)
Syntax
C++
virtual OdResult boolean(OdIfcModelerGeometryPtr tool, IfcBooleanOperator op, IfcModelerKeep keep = kBoth) = 0;
Parameters 
Description 
OdIfcModelerGeometryPtr tool 
[in] A tool operand represented with a smart-pointer to the geometry modeler object.  
IfcBooleanOperator op 
[in] A type of the boolean operation to be performed.  
IfcModelerKeep keep = kBoth 
[in] An option value that determines which operands stay unchanged after the operation. 

Returns the operation result code:

  • eOk if the operation was performed successfully.
  • eIllegalEntityType if operands have illegal types.
  • eGeneralModelingFailure in other cases.

Performs a specified boolean operation between the currently stored blank body and the tool. The result of the operation is stored in the geometry modeler object instead of the currently stored body. 

 

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.