ifcopenshell.util.data

Module Contents

class ifcopenshell.util.data.Clipping
location: tuple[float, float, float]
normal: tuple[float, float, float]
operand_type: str = 'IfcHalfSpaceSolid'
type: str = 'IfcBooleanClippingResult'
apply(ifc_file: ifcopenshell.file, first_operand: ifcopenshell.entity_instance, unit_scale: float) ifcopenshell.entity_instance

Applies the clipping data as an IfcBooleanClippingResult to an operand

Parameters:
  • ifc_file – The model to create the entities in

  • first_operand – The representation item to apply the boolean clipping to.

  • unit_scale – The unit scale value to convert from the Clipping’s SI units to project units

Returns:

An IfcBooleanClippingResult which uses an IfcHalfSpaceSolid to clip the first operand

classmethod parse(raw_data: Any) ifcopenshell.entity_instance | Clipping | None

Parse various formats into a clipping object

raw_data can be either:

  • IfcBooleanResult IFC entity

  • Clipping instance

  • dictionary to define Clipping - either location and normal

    or a matrix where XY plane is the clipping boundary and +Z is removed. matrix method will be soon to be deprecated completely.