Bezier.locus

Bezier.locus(resolution=100)[source]

Compute the locus of all points on the curve.

Parameters

resolution (int) – The number of intervals at which a point on the curve should be computed.

Returns

list[Point] – Points along the curve.

Examples

>>> curve = Bezier([[0.0, 0.0, 0.0], [0.5, 1.0, 0.0], [1.0, 0.0, 0.0]])
>>> points = curve.locus(10)
>>> len(points) == 10
True
>>> points[0]
Point(0.000, 0.000, 0.000)
>>> points[-1]
Point(1.000, 0.000, 0.000)