tween_points

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

Compute the interpolated points between two sets of points.

Parameters:
points1list[[float, float, float] | compas.geometry.Point]

The first set of points.

points2list[[float, float, float] | compas.geometry.Point]

The second set of points.

numint

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

>>>