Possible bug in NurbsCurve CreateInterpolatedCurve c#

Hello,

I’m using NurbsCurve.CreateInterpolatedCurve with degree 1, and the result is not correct. The similar code in Rhino 4 works fine.
For example, using this code:
            Point3dList points = new Point3dList( );
            Point3d pTemp = new Point3d( 0, 0, 40 );
            for(int i=0; i<10;i++)
            {
                points.Add( pTemp );
                pTemp.X +=1.0;
            }
            Curve crvTest = NurbsCurve.CreateInterpolatedCurve( points, 1 );
            Guid id = Rhino.RhinoDoc.ActiveDoc.Objects.AddCurve( crvTest );
            points.Clear( );

It creates a new curve with the points, but the “PointAtEnd” is allways (0,0,0)

Regards

The documentation says that it works best with degree = 3.

Why not use PolylineCurve? A polyline is the same as a degree 1 NURBS curve.

Yes, I have solved it using polyline, but I have think that could be useful to notice the problem.
In rhino 4 it works fine…