Tuesday, April 24, 2012

SPIRAL IN SPACE

by variing number of sin and cos in the function, various outcomes can be created:







import rhinoscriptsyntax as rs
import math
pointlist=[]
for i in range(0,100):
r=i+1
x=r*math.sin(i)#*math.sin(i)*math.cos(i)
y=r*math.cos(i)#*math.cos(i)#*math.cos(i)*math.cos(i)
points=rs.AddPoint(x,y,i)
pointlist.append(points) #ADD THINGS TO A LIST WITHIN LOOP!!!!!!!
 
rs.AddInterpCurve(pointlist)

No comments:

Post a Comment