Circles w/Recrusion: Joanna

 

Screen Shot 2015-03-30 at 7.06.37 PM

import rhinoscriptsyntax as rs
import random

#def random_color():
#return (random.randint(0,255), random.randint(0,255), random.randint(0,255))
color = random.randint(255, 255)

pt = rs.GetPoint(“Pick starting point”)

def RecursiveCircle(pt, d):
if d == 0:
return 1
else:
c = rs.AddCircle(pt, d)
rs.ObjectColor(c, color)

return RecursiveCircle(pt, d-1)

RecursiveCircle(pt, 10)

Midterm/Final project idea- Joanna

For my primary project in Sculpting Data into Everyday Objects I partnered up with Ross Goodwin and decided to create a lamp that will visualize the traveling salesman problem between a set of cities that Italo Calvino described in Invisible Cities.

The lamp will be a three-dimensional set of vertices, each a 3D printed city-node designed based on descriptions of various cities in the Calvino’s Invisible Cities. The cities will serve a purpose of little light bulbs with LEDs inside them, that will visualize a computer algorithm running on Raspberry Pi solving the traveling salesman problem in real time between the cities.

Here is the first node-city I have modeled in Rhino, Valdrada:

Screen Shot 2015-03-10 at 10.46.01 AM