求大神指教~~~刚接触
import rhinoscriptsyntax as rs
start = rs.AddPoint( (0,0,0) )
start2 = rs.AddPoint( (0,0,-2) )
end = rs.AddPoint( (10,0,10) )
end1 = rs.AddPoint( (10,0,0) )
ss = rs.AddLine(start, end)
ss1 = rs.AddLine(start2, end1)
print "ee",ss
all = rs.AllObjects("wwwww",rs.filter.curve)
objs = rs.LastCreatedObjects()
qq=rs.SelectObjects( objs )
points = rs.GetPoints(True)
ss3=rs.AddPolyline(points)
ee=rs.AddSweep2(qq , ss3 )
|