API Reference > OdIfc Namespace > Classes > OdIfcModelerGeometry Class > OdIfcModelerGeometry Methods > boolean Method > OdIfcModelerGeometry::boolean Method (OdIfcModelerGeometryPtr, OdIfcModelerGeometryPtr, IfcBooleanOperator, IfcModelerKeep)
OdIfcModelerGeometry::boolean Method (OdIfcModelerGeometryPtr, OdIfcModelerGeometryPtr, IfcBooleanOperator, IfcModelerKeep)
Syntax
C++
virtual OdResult boolean(OdIfcModelerGeometryPtr tool, OdIfcModelerGeometryPtr blank, IfcBooleanOperator op, IfcModelerKeep keep = kBoth) = 0;
Parameters 
Description 
OdIfcModelerGeometryPtr tool 
[in] A tool operand.  
OdIfcModelerGeometryPtr blank 
[in] A blank operand.  
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 body and the tool. The result of the operation is stored in the specified geometry modeler object. 

 

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