'Convert Curve to Polyline' in RhinoCommon?


#1

hi,

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.

best,

heinz.


#2

Hi lungenstrudel,

Check the Curve.ToPolyline method.


#3

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