import rhinoscriptsyntax as rs import math # delete everything and start from scratch allobjs = rs.AllObjects() rs.DeleteObjects(allobjs) #s = 137.508 s = 137 point0 = (0,0,0) # helix axis start point or center of spiral point1 = (0,0,2000) # helix axis end point or point normal on spiral plane pitch = 0.5 # distance between turns. If 0, then a spiral. If > 0 then the distance between helix "threads" turns = 8 # number of turns radius0 = 0.5 # starting radius of spiral radius1 = 0.01 # ending radius of spiral for n in range(0,500): # 500 -> how big/number of spirals in fibonacci-spiral t = math.sqrt(n) # returns the square root of a number g = n * s # angle z = rs.Polar([0,0,0],g,t) #z1 = t*math.sin(n)*math.cos(nx) #z2 = t*math.sin(n)*math.sin(n) #z3 = t*math.cos(n) #z = [z1,z2,z3] #rs.AddCircle(z,0.3) rs.AddSpiral(z, point1, pitch, turns, radius0, radius1)