Curve.to_polyline

Curve.to_polyline(n=128, domain=None)[source]

Convert the curve to a polyline.

Parameters:
nint, optional

The number of line segments in the polyline. Default is 16.

domaintuple, optional

Subset of the domain to use for the discretisation. Default is None, in which case the entire curve domain is used.

Returns:
compas.geometry.Polyline