Beam.from_endpoints

classmethod Beam.from_endpoints(point_start, point_end, width, height, z_vector=None)[source]

Creates a Beam from the given endpoints.

Parameters:
point_startPoint

The start point of a centerline

end_pointPoint

The end point of a centerline

widthfloat

Width of the cross-section.

heightfloat

Height of the cross-section.

z_vectorVector

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

Returns:
Beam