ClippedExtrusion
- class compas_ifc.representations.ClippedExtrusion(extrusion, clipping_planes, name=None)
Bases:
GeometryAn extrusion clipped by one or more half-space planes.
Directly corresponds to a chain of
IfcBooleanClippingResultentities withOperator=DIFFERENCE. The leafFirstOperandis anIfcExtrudedAreaSolidand eachSecondOperandis anIfcHalfSpaceSolid.Preserves all parametric data: the base extrusion profile, direction, depth and frame, plus every clipping plane with its agreement flag.
- Parameters:
- extrusion
Extrusion The base extrusion being clipped.
- clipping_planeslist[tuple[
Plane, bool]] Each entry is
(plane, agreement_flag). plane defines the clipping surface. agreement_flagTruemeans the solid is on the same side as the plane normal;Falsemeans the opposite side.- namestr, optional
Optional name for the geometry.
- extrusion
- Attributes:
- extrusion
Extrusion The base extrusion.
- clipping_planeslist[tuple[
Plane, bool]] Clipping planes with agreement flags.
- namestr or None
Optional name.
- extrusion
Methods
Compute the axis-aligned bounding box of the geometry.
Compute the oriented bounding box of the geometry.
Return a deep copy of this clipped extrusion.
Surface area of the clipped extrusion.
Convert the clipped extrusion to a
compas.datastructures.Mesh.Discretise the clipped extrusion into vertices and faces.
Transform the clipped extrusion.
Volume of the clipped extrusion.
Inherited Methods
Converts the instance to a string.
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.