Panel
- class compas_timber.elements.Panel[source]
Bases:
ElementRepresents a timber panel element (wall, floor, roof, etc.).
Serves as container for beams, plates, and other related elements and groups them together to form a panel. A panel is often a single unit of prefabricated timber element. It is often referred to as an enveloping body.
- Parameters:
- frame
Frame The coordinate system (frame) of this panel.
- lengthfloat
Length of the panel.
- widthfloat
Width of the panel.
- thicknessfloat
Thickness of the panel.
- local_outline_a: :class:`~compas.geometry.Polyline`, optional
A polyline representing the principal outline of this panel.
- local_outline_b: :class:`~compas.geometry.Polyline`, optional
A polyline representing the associated outline of this panel.
- openingslist[
Polyline], optional A list of Polyline objects representing openings in this panel.
- namestr, optional
Name of the panel. Defaults to “Panel”.
- **kwargsdict, optional
Additional keyword arguments.
- frame
- Attributes:
- frame
Frame The coordinate system (frame) of this panel.
- lengthfloat
Length of the panel.
- widthfloat
Width of the panel.
- heightfloat
Height (thickness) of the panel.
- thicknessfloat
Thickness of the panel.
- planestuple (
Plane,Plane) The two main planes of the panel (bottom and top).
- normal
Vector The normal vector of the panel.
- edge_planesdict[int,
Plane] The edge planes of the panel by edge index.
- namestr
Name of the panel.
interfaceslistlist[
PanelConnectionInterface]: The interfaces associated with this panel.- attributesdict
Dictionary of additional attributes.
- is_group_elementbool
Always True for panels as they can contain other elements.
- frame
Methods
adjusts segments of the outlines to lay on the edge planes created by plate joints.
Computes the Axis Aligned Bounding Box (AABB) of the element.
Computes the collision geometry of the element.
Compute the geometry of the element.
Same as parent but handles standalone elements.
Same as parent but handles standalone elements.
Computes the Oriented Bounding Box (OBB) of the element.
Creates a plate from a brep.
Constructs a Plate from a polyline outline and a thickness.
Constructs a Panel from two polyline outlines.
Removes any extension plane for the given edge index.
Removes interfaces from the element.
Resets the element to its initial state by removing all features, extensions, and debug_info.
Sets an extension plane for a specific edge of the plate.
Compute the transformation from model space to local element space.
Inherited Methods
Converts the instance to a string.
Add a feature to the list of features of the element.
Apply the features to the (base) geometry.
Compute the contacts between this element and another element.
Computes a reference point for the element geometry (e.g.
Computes the triangulated surface mesh of the element's model geometry.
Computes the tetrahedral volumetric mesh of the element's model geometry.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
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.
Transforms the element.
Creates a transformed copy of the element.
Validate the data against the object's data schema.