Skip to content

compas_timber.panel_features ¤

Classes¤

InterfaceRole ¤

Enumeration of the possible interface roles.

Attributes:

  • MAIN (literal(MAIN)) –

    The interface is the main interface.

  • CROSS (literal(CROSS)) –

    The interface is the cross interface.

  • NONE (literal(NONE)) –

    The interface has no specific role. E.g. when a miter joint is used.

PanelConnectionInterface ¤

PanelConnectionInterface(
    polyline: Polyline,
    frame: Frame,
    edge_index: int | None,
    interface_role: InterfaceRole = NONE,
    name="PanelConnectionInterface",
    **kwargs,
)

Attributes¤

polyline property ¤
polyline: Polyline

Returns the interface polyline in the coordinates of the containing Panel.

width property ¤
width: float

Returns the width of the interface polyline.

Functions¤

as_plane ¤
as_plane() -> Plane

Returns the interface as a plane.

PanelFeature ¤

PanelFeature(frame: Frame, panel_feature_type: PanelFeatureType | str = NONE, **kwargs)

Attributes¤

geometry property ¤
geometry: Geometry

The geometry of the element in the model's global coordinates.

Functions¤

apply ¤
apply(geometry: Brep, panel: Panel) -> Brep

Apply the panel feature to the panel geometry.

compute_modelgeometry ¤
compute_modelgeometry() -> Geometry

Same as parent but handles standalone elements.

compute_modeltransformation ¤
compute_modeltransformation() -> Transformation

Same as parent but handles standalone elements.