PlateElement
- class compas_model.elements.PlateElement(polygon=Polygon(points=[Point(x=-2.4492935982947064e-16, y=1.0, z=0.0), Point(x=-1.0, y=-1.8369701987210297e-16, z=0.0), Point(x=1.2246467991473532e-16, y=-1.0, z=0.0), Point(x=1.0, y=6.123233995736766e-17, z=0.0)]), thickness=0.1, transformation=None, features=None, name=None)
Bases:
Element
Class representing a plate element constructed from a polygon and thickness. The polygon is extruded in the opposite direction of the polygon normal.
- Parameters:
- polygon
compas.geometry.Polygon
The base polygon of the plate.
- thicknessfloat
The total offset thickness above and blow the polygon
- transformation
compas.geometry.Transformation
, optional The transformation of the plate.
- featureslist[
PlateFeature
], optional The features of the plate.
- namestr, optional
The name of the plate.
- polygon
- Attributes:
- polygon
compas.geometry.Polygon
The base polygon of the plate.
- bottom
compas.geometry.Polygon
The base polygon of the plate.
- top
compas.geometry.Polygon
The top polygon of the plate.
- thicknessfloat
The total offset thickness above and blow the polygon
- polygon
Methods
Computes the Axis Aligned Bounding Box (AABB) of the geometry of the element.
Compute the shape of the plate from the given polygons.
Computes the Oriented Bounding Box (OBB) of the geometry of the element.
Computes a reference point for the element geometry (e.g.
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.
Computes the collision geometry of the geometry of the element.
Computes the 2D FE analysis mesh of the element's model geometry.
Computes the 3D FE mesh of the element's model geometry.
Compute the geometry of the element in model coordinates and taking into account the effect of interactions with connected elements.
Compute the transformation to model coordinates of this element based on its position in the spatial hierarchy of the model.
Compute the contacts between this element and another element.
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.