'Convert Curve to Polyline' in RhinoCommon?


i’m searching for a RhinoCommon SDK (C# .NET) way to do
what the rhino-command 'convert curve to polyline’
does from within rhino.

at the moment, i’m using PolyCurve.DivideByLength, which gives me redundant points for straight lines and too few points for areas exhibiting high curvature. said rhino command features a lot of options for optimizing the point count with regard to these aspects.



Hi lungenstrudel,

Check the Curve.ToPolyline method.

1 Like

wow, that helps!! thanks a lot!! :wink: