tween_points

compas.geometry.tween_points(points1, points2, num)[source]

Compute the interpolated points between two sets of points.

Parameters
  • points1 (list[[float, float, float] | Point]) – The first set of points.

  • points2 (list[[float, float, float] | Point]) – The second set of points.

  • num (int) – The number of interpolated sets to return.

Returns

list[list[[float, float, float]]] – Nested list of points.

Raises

AssertionError – When the two point sets do not have the same length.

Notes

The two point sets should have the same length.

Examples

>>>