compas.geometry.tween_points

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

Compute the interpolated points between two sets of points.

Parameters
  • points1 (list) – The first set of points

  • points2 (list) – The second set of points

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

Returns

list – Nested list of points.

Raises

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

Examples

>>>

Notes

The two point sets should have the same length.