Explode PolylineCurve


I’ve a non linear NurbsCurve, and I need explode this curve with a determine parameters

In rhino I do: Curve -> Convert -> Curve in lines with tolerance 1and minlength 10 and after explode

But in code I do this:

PolylineCurve polyline = ((NurbsCurve)curve).ToPolyline(0, 0, 0, 0, 0, 1, step, 0, true);

I’ve the polyline but I don’t know how explode this object.

Explode function is in class PolyCurve

I’m working with c# and rhinocommon

Hi Manolo,

Check the Curve.DuplicateSegments method.

1 Like

It works. Thanks!