import rhinoscriptsyntax as rs
from math import *
import random
a = 7
points = []
for i in range(0,80):
x = 100/(10+i+0.01)*a*sin(pi/4*i)
y = 100/(10+i+0.01)*a*cos(pi/4*i)
z = i*2
points.append([x,y,z])
curve = rs.AddCurve(points)
rotatedcurves = []
numberofcurves = 5
for i in range(0,5):
rotatedcurves.append(rs.RotateObject(curve, [0,0,0], 360/numberofcurves*i,None,True))
divisions = 60
radius = 1
for j in range(0,len(rotatedcurves)):
circles = []
for i in range(divisions):
parameter = i/divisions
evaluationparam = rs.CurveParameter(rotatedcurves[j], parameter)
pointscoord = rs.EvaluateCurve(rotatedcurves[j], evaluationparam)
perpframe = rs.CurvePerpFrame(rotatedcurves[j],evaluationparam)
circles.append(rs.AddCircle(perpframe,radius+i/10*random.random()))
rs.AddLoftSrf(circles)
No comments:
Post a Comment