OCCNurbsCurve.divide

OCCNurbsCurve.divide(count, return_points=False, precision=1e-06)

Divide the curve into a specific number of equal length segments.

Parameters:
countint

The number of segments.

return_pointsbool, optional

If True, return the list of division parameters, and the points corresponding to those parameters. If False, return only the list of parameters.

precisionfloat, optional

The precision used for calculating the segments.

Returns:
list[float] | tuple[list[float], list[Point]]

If return_points is False, the parameters of the discretisation. If return_points is True, a list of points in addition to the parameters of the discretisation.