The result on the attached curve is degraded starting in Rhino7
What I observe is that corners are being cut by chamfer type additional lines. input_curve.3dm (23.5 KB)
To replicate, run the python script below in V6 V7 and V8
Hi Dale,
I also think that this is a bug which should be fixed.
ToArcsAndLines should not change line segments of a polycurve and chamfer corners.
I have plugins out which rely on this function.
Thanks, Jess
hope this info helps to fix the bug:
If a polycurve description contains segments of type Polyline then it looks like maximumLength does not recognize it as separate line segments, which of course should not be changed.
This is not just the the case with RhinoCommon, it also fails with the _Convert command.
Thanks, Jess
Edit: @Willem - a workaround would be to convert polycurves _ToNurbs
nurbs_curve = curve.ToNurbsCurve()