BeamElement.from_line

classmethod BeamElement.from_line(center_axis, width, height, z_vector=None, **kwargs)

Define the beam from its center_axis.

Parameters:
center_axiscompas.geometry.Line

The center_axis of the beam to be created.

lengthfloat

Length of the beam.

widthfloat

Width of the cross-section.

heightfloat

Height of the cross-section.

z_vectorcompas.geometry.Vector

A vector indicating the height direction (z-axis) of the cross-section. Defaults to WorldZ or WorldX depending on the center_axis’s orientation.

**kwargsdict, optional

Additional keyword arguments.

Returns:
compas_timber.parts.Beam