Beam.from_endpoints

classmethod Beam.from_endpoints(point_start, point_end, width, height, z_vector=None, geometry_type='brep')

Creates a Beam from the given endpoints.

Parameters:
  • point_start (Point) – The start point of a centerline

  • end_point (Point) – The end point of a centerline

  • width (float) – Width of the cross-section.

  • height (float) – Height of the cross-section.

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

  • gemetry_type (str) – The type of geometry to use when creating this beam. Either ‘mesh’ of ‘brep’.

Returns:

Beam