BooleanResult
- class compas_ifc.representations.BooleanResult(operator, first_operand, second_operand, name=None)
Bases:
GeometryA CSG boolean operation on two geometry operands.
Directly corresponds to
IfcBooleanResult. Each operand can be any COMPAS geometry type — anExtrusion, a shape primitive (Box,Sphere, etc.), aHalfSpace, anotherBooleanResult, or any other geometry that the reading pipeline produces.This is a recursive structure: complex CSG trees are represented as nested
BooleanResultinstances.- Parameters:
- Attributes:
Methods
Return a deep copy of this boolean result.
Return the depth of the CSG tree rooted at this node.
Yield all leaf (non-BooleanResult) operands in the CSG tree.
Surface area of the boolean result.
Convert the boolean result to a
compas.datastructures.Mesh.Discretise the boolean result into vertices and faces.
Transform the boolean result by transforming both operands.
Volume of the boolean result.
Inherited Methods
Converts the instance to a string.
Compute the axis-aligned bounding box of the geometry.
Compute the oriented bounding box of the geometry.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Rotate the geometry.
Returns a rotated copy of this geometry.
Scale the geometry.
Returns a scaled copy of this geometry.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Returns a transformed copy of this geometry.
Translate the geometry.
Returns a translated copy of this geometry.
Validate the data against the object's data schema.