teaching machines

pinterrm – HW4

May 10, 2015 by . Filed under cs455, postmortems, spring 2015.

My original thought was to design some sort of leaf like structure that slowly rotated upwards. I dropped this idea a while after starting because I didn’t like the look of anything I was coming up with.
I then settled on trying to design something that I might like to see 3d printed. Here is what I came up with. I challenged myself to create two items, one existing inside the other.

HereĀ is a 5 pointed star, drawn 4 times centered inside a open faced sphere

pinterrm_HW4

 

 

The code is as follows

pi = 3.1415
push
push
moveto 0,0,0
pitch 90
repeat 9
move 2
repeat 9
pitch pi*pi
move 2
end
yaw 90
pitch pi*2
move pi//2.3
yaw 90
repeat 10
move 2
pitch pi*pi
end
pitch -10
yaw -pi*47
end
pop
moveto 0,0,0
moveto 0,10,0
scaleFactor = 4
repeat 2
pitch 54
move 5
pitch 36*6
move 4.045*2
pitch 36*4
move 5+4.045
pitch 36*-4
length = 10.59
move length
pitch 36*4
move length
pitch 36*6
move 4.045
pitch 54
roll 90
end
pop
moveto 0,25,0
pitch 180
roll 24
pitch 90
repeat 9
move 2
repeat 9
pitch pi*pi
move 2
end yaw 90
pitch pi*2
move pi//2.3
yaw 90
repeat 10
move 2
pitch pi*pi
end
pitch -10
yaw -pi*47
end
nsides = 10
tube