Polyline Curve explode c#

How to explode a Polyline Curve into segments?

I tried to recreate this in c#

everything works but i can’t find a way to explode the polyline curve

Many thanks for every help

Hi,

For a polyline this should do it

https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.polyline/getsegments

For a generic curve

https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.curve/duplicatesegments

1 Like

I found a way to solve my problem, but many thanks for your link.

See also for a more general approach also see those older posts: