BeamElement
- class compas_model.elements.BeamElement(frame, length, width, height, name=None)
Bases:
Element
A beam representation of a Line and a Box.
- Parameters:
- frame
compas.geometry.Frame
The frame of the beam.
- lengthfloat
Length of the beam.
- widthfloat
Width of the cross-section.
- heightfloat
Height of the cross-section.
- frame
- Attributes:
- guiduuid
The unique identifier of the element.
- geometryUnion[Geometry, Mesh]
The geometry of the element.
- frame
compas.geometry.Frame
The frame of the element.
- namestr
The name of the element.
- graph_node
compas.datastructures.GraphNode
The graph node of the element.
- tree_node
compas.datastructures.TreeNode
The tree node of the element.
- dimensionslist
The dimensions of the element.
- aabb
compas.geometry.Box
The Axis Aligned Bounding Box (AABB) of the element.
- obb
compas.geometry.Box
The Oriented Bounding Box (OBB) of the element.
- collision_mesh
compas.datastructures.Mesh
The collision geometry of the element.
- featuresdict
These are custom geometrical objects added to the elements through operations made by the user. For example, a cutting shape for boolean difference operations, text identifiers.
- insertion
compas.geometry.Vector
The insertion vector of the element. Default is (0, 0, -1), representing a downwards insertion. This attribute is often used for simulating an assembly sequence.
- node
compas_model.model.ElementNode
The node in the model tree containing the element.
- face_polygonslist, read-only
Flat area list of the face polygons of the element, used for interface detection.
Methods
Computes the Axis Aligned Bounding Box (AABB) of the element.
Computes the collision geometry of the element.
Computes the face polygons of the element.
Computes the Oriented Bounding Box (OBB) of the element.
Define the beam from its center_axis.
Transforms all the attrbutes of the class.
Inherited Methods
Converts the instance to a string.
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.
Creates a transformed copy of the class.
Validate the data against the object's data schema.