ibfoamrig.core.line_points#

ibfoamrig.core.line_points(start, end, count)[source]#

Places evenly spaced points on a line segment.

Parameters:
  • start (Point) – First end point (x, y, z).

  • end (Point) – Second end point (x, y, z).

  • count (int) – Number of points, including both end points.

Returns:

The distance of each point from start with shape (count,) and the points with shape (count, 3).

Raises:

ValueError – If count is below 2 or start and end coincide.

Return type:

tuple[ndarray[tuple[Any, …], dtype[float64]], ndarray[tuple[Any, …], dtype[float64]]]