Adds a control points curve object to the document.
rhinoscriptsyntax.AddCurve (points, degree=3 )
rhinoscript.curve.AddCurve (points, degree=3 )
points |
Required. A list of 3-D points. |
degree |
Optional. Number. The degree of the curve. If omitted, a degree 3 curve is created. |
Guid |
The identifier of the new object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
points = rs.GetPoints(True, message1="Pick curve point")
if points: rs.AddCurve(points)