loop

Parameters

loop

Whether to connect the first and last point, such that it forms a closed shape.

The ends of an open chain use phantom points that mirror the first and last edge, so that the curve, like the centripetal and chordal parametrizations themselves, doesn't depend on the scale of the points. Repeated consecutive points are dropped.