teaching machines

Some Starter Models

March 7, 2014 by . Filed under madeup, public.

Madeup is going on the road for the first time tomorrow—at our local public library. Participants are going to create their own models and we’re going to try printing them. Since many models exhibit printing issues (too steep an overhang, intersecting geometry, non-manifoldness), we’ve generated a handful of objects that are well-behaved.

Rook

nsides = 10
moveto 0 0 0
moveto 2.5 0 0
moveto 2 1.5 0
moveto 1.3 1.6 0
moveto 1.3 6 0
moveto 2 7 0
moveto 2 8 0
moveto 1.5 8 0
moveto 1.5 7.3 0
moveto 0 7.3 0
revolve

A rook, generated as a surface of revolution about (0, 1, 0).

Hazmat

moveto 0 0 0
yaw 30
repeat 3
  move 10
  yaw 120
  move 5
  yaw 120
end
tube

Hazardous material, straight ahead. Hazardous to mathematical ignorance, that is.

X-Men

nsides = 4
radius = 2

moveto 10 0 0
repeat 100
  yaw -3.6
  move 0.62822
end
tube

nsides = 4
moveto -10 0 0
moveto 10 0 0
tube

moveto 0 10 0
moveto 0 -10 0
tube

The X-Men logo, generated from three tubes.

Snowman

nsides = 20

radius = 10
moveto 0 0 0

radius = 8
moveto 0 12 0

radius = 6
moveto 0 22 0

radius = 1

-- eyes
moveto -1.5 24 5
moveto 1.5 24 5

-- buttons
moveto 0 10 7.35
moveto 0 13 7.6
moveto 0 16 6.6

dot

A snowman, made of snowballs.

Spiral

radius = 16
moveto 0 0 0

i = 1
repeat 1007
  yaw 2.5
  i = i + 0.01
  move i
end

tube

A spiral, made with constant chord offsets.