Hi, This seems like a very basic question but for some reason I cannot find the right answer on this forum.
my problem is as follows: I want to draw geometry using rhinoscriptsyntax addpoints() and addpolyline() methods based on a user-defined starting point.
My set-up is as follows:
import rhinoscriptsyntax as rs
import Rhino.Geometry as rg
origin = rs.GetPoint("Set Origin")
if origin:
plane = rs.ViewCPlane()
plane = rs.MovePlane(plane,origin)
rs.ViewCPlane(None,plane)
p0 = rs.AddPoint(0, 0, 0)
p1 = rs.AddPoint(2, 0, 0)
rs.AddPolyline([p0,p1])
But, when the points are drawn, they are drawn based on world plane coordiantes, not on the cplane I just defined. What am I doing wrong :)?
Thanks!
2 posts - 2 participants