ColumnElement

class compas_model.elements.ColumnElement(width=0.4, depth=0.4, height=3.0, transformation=None, features=None, name=None)

Bases: Element

Class representing a beam element with a square section, constructed from the WorldXY Frame. The column is defined in its local frame, where the height corresponds to the Z-Axis, the depth to the Y-Axis, and the width to the X-Axis. By default, the local frame is set to WorldXY frame.

Parameters:
widthfloat

The width of the column.

depthfloat

The depth of the column.

heightfloat

The height of the column.

transformationOptional[compas.geometry.Transformation]

Transformation applied to the column.

featuresOptional[list[compas_model.features.ColumnFeature]]

Features of the column.

nameOptional[str]

If no name is defined, the class name is given.

Attributes:
widthfloat

The width of the column.

depthfloat

The depth of the column.

heightfloat

The height of the column.

center_linecompas.geometry.Line

Line axis of the column.

Methods

compute_aabb

Compute the axis-aligned bounding box of the element.

compute_collision_mesh

Compute the collision mesh of the element.

compute_elementgeometry

Compute the mesh shape from a box.

compute_obb

Compute the oriented bounding box of the element.

compute_point

Compute the reference point of the column from the centroid of its geometry.

extend

Extend the beam.

Inherited Methods

ToString

Converts the instance to a string.

add_feature

Add a feature to the list of features of the element.

apply_features

Apply the features to the (base) geometry.

compute_contacts

Compute the contacts between this element and another element.

compute_modelgeometry

Compute the geometry of the element in model coordinates and taking into account the effect of interactions with connected elements.

compute_modeltransformation

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

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_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

sha256

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

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.

transformed

Creates a transformed copy of the element.

validate_data

Validate the data against the object's data schema.