Plate

class compas_timber.elements.Plate[source]

Bases: PlateGeometry, TimberElement

A class to represent timber plates (plywood, CLT, etc.) defined by polylines on top and bottom faces of material.

Parameters:
frameFrame

The coordinate system (frame) of this plate.

lengthfloat

Length of the plate.

widthfloat

Width of the plate.

thicknessfloat

Thickness of the plate.

outline_aPolyline, optional

A line representing the principal outline of this plate.

outline_bPolyline, optional

A line representing the associated outline of this plate. This should have the same number of points as outline_a.

openingslist[Polyline], optional

A list of Polyline objects representing openings in this plate.

**kwargsdict, optional

Additional keyword arguments.

Attributes:
frameFrame

The coordinate system (frame) of this plate.

lengthfloat

Length of the plate.

widthfloat

Width of the plate.

heightfloat

Height of the plate (same as thickness).

thicknessfloat

Thickness of the plate.

outline_aPolyline

A line representing the principal outline of this plate.

outline_bPolyline

A line representing the associated outline of this plate.

is_platebool

Always True for plates.

blankBox

A feature-less box representing the material stock geometry to produce this plate.

blank_lengthfloat

Length of the plate blank.

featureslist[BTLxProcessing]

List of features applied to this plate.

keyint, optional

Once plate is added to a model, it will have this model-wide-unique integer key.

Methods

compute_elementgeometry

Compute the geometry of the element.

from_outlines

Constructs a Plate from two polyline outlines.

reset

Resets the element to its initial state by removing all features, extensions, and debug_info.

Inherited Methods

ToString

Converts the instance to a string.

add_feature

Adds one or more features to the beam.

add_features

Adds one or more features to the beam.

apply_edge_extensions

adjusts segments of the outlines to lay on the edge planes created by plate joints.

apply_features

Apply the features to the (base) geometry.

back_side

Returns the previous side before the reference side, following the right-hand rule with the thumb along the beam's frame x-axis.

compute_aabb

Computes the Axis Aligned Bounding Box (AABB) of the element.

compute_collision_mesh

Computes the collision geometry of the element.

compute_contacts

Compute the contacts between this element and another element.

compute_modelgeometry

Same as parent but handles standalone elements.

compute_modeltransformation

Same as parent but handles standalone elements.

compute_obb

Computes the Oriented Bounding Box (OBB) of the element.

compute_point

Computes a reference point for the element geometry (e.g.

compute_shape

The shape of the plate before other features area applied.

compute_surface_mesh

Computes the triangulated surface mesh of the element's model geometry.

compute_volumetric_mesh

Computes the tetrahedral volumetric mesh of the element's model geometry.

copy

Make an independent copy of the data object.

from_brep

Creates a plate from a brep.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

from_outline_thickness

Constructs a PlateGeometry from a polyline outline and a thickness.

front_side

Returns the next side after the reference side, following the right-hand rule with the thumb along the beam's frame x-axis.

get_args_from_outlines

Get constructor arguments for the PlateGeometry and subclasses from outlines.

get_dimensions_relative_to_side

Returns the perpendicular and parallel dimensions of the beam to the given reference side.

opp_side

Returns the the side that is directly across from the reference side, following the right-hand rule with the thumb along the beam's frame x-axis.

remove_blank_extension

Removes any extension plane for the given edge index.

remove_features

Removes a feature from the beam.

reset_computed_properties

Reset all computed/cached properties.

set_extension_plane

Sets an extension plane for a specific edge of the plate.

sha256

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

side_as_surface

Returns the requested side of the beam as a parametric planar surface.

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.

transform

Transforms the element.

transformation_to_local

Compute the transformation to local coordinates of this element based on its position in the spatial hierarchy of the model.

transformed

Creates a transformed copy of the element.

validate_data

Validate the data against the object's data schema.