Slab
- class compas_timber.elements.Slab[source]
Bases:
PlateGeometry,ElementRepresents a timber slab element (wall, floor, roof, etc.).
Serves as container for beams, plates, and other related elements and groups them together to form a slab. A slab 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 slab.
- lengthfloat
Length of the slab.
- widthfloat
Width of the slab.
- thicknessfloat
Thickness of the slab.
- local_outline_a: :class:`~compas.geometry.Polyline`, optional
A polyline representing the principal outline of this slab.
- local_outline_b: :class:`~compas.geometry.Polyline`, optional
A polyline representing the associated outline of this slab.
- openingslist[
Polyline], optional A list of Polyline objects representing openings in this slab.
- namestr, optional
Name of the slab. Defaults to “Slab”.
- **kwargsdict, optional
Additional keyword arguments.
- frame
- Attributes:
- frame
Frame The coordinate system (frame) of this slab.
- lengthfloat
Length of the slab.
- widthfloat
Width of the slab.
- heightfloat
Height (thickness) of the slab.
- thicknessfloat
Thickness of the slab.
- namestr
Name of the slab.
- interfaceslist
List of interfaces associated with this slab.
- attributesdict
Dictionary of additional attributes.
- is_group_elementbool
Always True for slabs as they can contain other elements.
- frame
Methods
Compute the geometry of the element at local coordinates.
Same as parent but handles standalone elements.
Same as parent but handles standalone elements.
Constructs a Slab from two polyline outlines.
Inherited Methods
Converts the instance to a string.
Add a feature to the list of features of the element.
adjusts segments of the outlines to lay on the edge planes created by plate joints.
Apply the features to the (base) geometry.
Computes the Axis Aligned Bounding Box (AABB) of the element.
Computes the collision geometry of the element.
Compute the contacts between this element and another element.
Computes the Oriented Bounding Box (OBB) of the element.
Computes a reference point for the element geometry (e.g.
The shape of the plate before other features area applied.
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.
Creates a plate from a brep.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Constructs a PlateGeometry from a polyline outline and a thickness.
Get constructor arguments for the PlateGeometry and subclasses from outlines.
Removes any extension plane for the given edge index.
Resets the element outlines to their initial state.
Sets an extension plane for a specific edge of the plate.
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.