mymesh.primitives.Multiline#

mymesh.primitives.Multiline(points, h=None, n=None, connect_ends=False)[source]#

Create a multi-point line by connecting a series of points

Parameters:
  • points (array_like) – Point coordinates (shape=(n,3))

  • h (float, optional) – Element size, by default None. If specified, each line segment will be approximately divided into elements of size h. If neither h nor n are specified, each line segment will be represented by a single element. If both n and h are specified, n takes precedence.

  • n (_type_, optional) – Number of elements for each segment, by default None. If specified, each line segment will be divided into n elements. If neither h nor n are specified, each line segment will be represented by a single element. If both n and h are specified, n takes precedence.

  • connect_ends (bool, optional) – If true, the last point will be connected to the first point (e.g. to create a closed loop), by default False.

Returns:

line – Mesh of the multiline

Return type:

mymesh.mesh