teaching machines

gutzmejr- Madeup models

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

This first model came from just messing around with the revolve function. That produced the very top part, and then I added the ledges just underneath. I figured it looked like a roof to a pagoda of sorts, so I added the legs and that was that!

 

PagodaModel

Code:

moveto 0, 0, 0
scale 0.3, 0.3, 0.3
repeat 20
move -2
yaw -5
end
repeat 5
move 2
yaw 50
move -2
yaw -45
end
revolve 0, 1, 0, 360
radius = 0.5
move 5
yaw -105
move 20
move -20
yaw 90
pitch 45
move 25
pitch -45
yaw -90
move 20
repeat 2
move -20
yaw 90
pitch -45
move 25
pitch -45
yaw -90
move 20
end
tube

 

For these next two, I originally wanted to make a bracelet of pentagons, but once I started on that, it turned into a spiral of hexagons. It was difficult getting the hexagons to string together at the right place without it looking a bit funny, but once I figured out all of the right commands it was pretty straightforward. One just a bit tighter than the other, but I thought they were both pretty cool looking.

Spiral1

 

Code:

moveto 0, 0, 0
repeat 6
yaw 60
move 5
end
nsides = 30
repeat 30
repeat 3
yaw 60
move 5
end
pitch 30
yaw -60
yaw -58
repeat 4
move 5
yaw 60
end
move 5
end
yaw 60
move 5
tube

 

Spiral2

 

Code:

moveto 0, 0, 0
repeat 6
yaw 60
move 5
end
repeat 2
move -5
yaw -60
end
nsides = 30
repeat 30
repeat 4
yaw 60
move 5
end
pitch 30
yaw -60
yaw -58
repeat 4
move 5
yaw 60
end
move 5
end
yaw 60
move 5
tube