CreateInterpolatedCurve fails

Hi,
can I create an interpolated curve from 3 points in degree 2?
this fails for me:

import rhinoscriptsyntax as rs

points = (0,0,0), (1,1,0), (2,0,0)

rs.AddInterpCurve(points, degree=2 )

I vaguely recall this bug being raised in the past, but I can’t find anything in the bugtracker… --Mitch

Hi @Goswin,

http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_CreateInterpolatedCurve_1.htm

The degree of the curve must >=1, and the degree must be odd.

– Dale