Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5809

How to add a Rhino.Geometry.BezierCurve in RinhoPyton Editor

$
0
0

@marceloarguello700 wrote:

Hi I am new in the rhino script environment.
Trying some code in the RinhoPyton Editor, start reading points from a CSV
and drawing some curves.

I have ReadPointsDef that return a Rhino.Collections.Point3dList()

points = ReadPointsDef("point.csv")

Then I add some objects:

`python

interCurve = rs.AddInterpCurve(points,3,4) 
rs.ObjectColor(interCurve, [255,0,0])#red
#-----------------------------
curve= rs.AddCurve(points) 
rs.ObjectColor(curve, [0,0,255])#blue
#-----------------------------
beCurve = Rhino.Geometry.BezierCurve(points)       
Rhino.Add(beCurve)  ---> this does not Work
Rhino.RhinoDoc.Objects.Add(beCurve) ---> this does not Work

AddInterpCurve and AddCurve work perfect, but I can´t Add a Rhino.Geometry,

How must to proceed ?

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5809

Trending Articles