BeamElement.from_line
- classmethod BeamElement.from_line(center_axis, width, height, z_vector=None, **kwargs)
Define the beam from its center_axis.
- Parameters:
- center_axis
compas.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_vector
compas.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.
- center_axis
- Returns:
compas_timber.parts.Beam