I noticed that there has been a change in behavior of Line.ToNurbsCurve() in Rhino 7 (I have SR9).
On Rhino 5 and 6, when this method was called - the domain of the newly created curve always remained normalized: from 0 to 1.
While on Rhino 7 (SR9), it’s not.
ln = Rhino.Geometry.Line( Rhino.Geometry.Point3d(0,0,0), Rhino.Geometry.Point3d(4,0,0) ) crv = ln.ToNurbsCurve() print crv.Domain
On Rhino 5 and 6, the last line always prints
On Rhino 7 it prints
This is not a huge problem, I already set up a Rhino version check in the code.
I was just curious why it happened.
I did all testing on Rhino for windows.