HalfSpace

class compas_ifc.representations.HalfSpace(plane, agreement_flag, name=None)

Bases: Geometry

An infinite half-space solid defined by a plane and agreement flag.

Directly corresponds to IfcHalfSpaceSolid. Used as an operand inside BooleanResult (or ClippedExtrusion) to represent infinite clipping cuts.

Parameters:
planePlane

The dividing plane surface.

agreement_flagbool

True means the solid is on the same side as the plane normal; False means the opposite side.

namestr, optional

Optional name for the geometry.

Attributes:
planePlane

The dividing plane.

agreement_flagbool

Which side of the plane is solid.

namestr or None

Optional name.

Methods

__init__

copy

Return a deep copy of this half-space.

transform

Transform the half-space by transforming its plane.

Inherited Methods

ToString

Converts the instance to a string.

compute_aabb

Compute the axis-aligned bounding box of the geometry.

compute_obb

Compute the oriented bounding box of the geometry.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

rotate

Rotate the geometry.

rotated

Returns a rotated copy of this geometry.

scale

Scale the geometry.

scaled

Returns a scaled copy of this geometry.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

transformed

Returns a transformed copy of this geometry.

translate

Translate the geometry.

translated

Returns a translated copy of this geometry.

validate_data

Validate the data against the object's data schema.