Fermat’s Spiral with Rhino Python

Studied earlier in Grasshopper here, the sunflower spiral or Phyllotaxis, or Fermat’s spiral could be drawn as an exercise of looping in Rhino Python.

1
2
3
4
5
6
7
8
9
10
# Drawing the Fermat's Spiral with Circles
# 30.07.2017 www.designcoding.net - Tugrul Yazar
import rhinoscriptsyntax as rs
import math
s = 137.508
for n in range(0,500):
    t = math.sqrt(n)
    g = n * s
    z = rs.Polar([0,0,0],g,t)
    rs.AddCircle(z,0.3)
«
»