TimberElement
- class compas_timber.elements.TimberElement[source]
Bases:
Element
Base class for all timber elements.
This is an abstract class and should not be instantiated directly.
- Attributes:
- is_beambool
True if the element is a beam.
- is_platebool
True if the element is a plate.
- is_wallbool
True if the element is a wall.
- is_group_elementbool
True if the element can be used as container for other elements.
Methods
Resets the element to its initial state by removing all features, extensions, and debug_info.
Inherited Methods
Converts the instance to a string.
Add a feature to the list of features of the lement.
Computes the Axis Aligned Bounding Box (AABB) of the element.
Computes the collision geometry of the element.
Compute the geometry of the element.
Computes the Oriented Bounding Box (OBB) of the element.
Compute the transformation to world coordinates of this element based on its position in the spatial hierarchy of the model.
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.