filter_periodic#

B2.filter_periodic(s)#

The filter used to turn knots into control points for a closed spline.

Parameters#

snumpy.array

An array of knots of shape (n, dim) where n is the number of knots and dim is the dimensionality of the codomain, i.e. the space in which the curve lives. Note that the knots should be padded.

Returns#

control_pointsnumpy.array

The control points for the spline passing through the knots provided.