medium 3d-printing laser-cutting
units m
scale 1:160
N_WIDE = 5
## the real ones are 9 and 10 bays wide
UNIT_WIDTH = 5
SIDE_LENGTH = 7.5
WALL_LENGTH = N_WIDE * UNIT_WIDTH
EAVES_HEIGHT = 4.5
ROOF_RISE = 4
defaults:
thickness .5
pattern lines --name roof_metal:
spacing .5
angle 90
pattern lines --name door_metal:
spacing .15
component front_back:
rect WALL_LENGTH EAVES_HEIGHT
component side:
rect SIDE_LENGTH EAVES_HEIGHT
component boxy:
rect UNIT_WIDTH EAVES_HEIGHT
DOOR_SIZE = EAVES_HEIGHT - 1
component bay_front:
group --thickness 3:
rect UNIT_WIDTH EAVES_HEIGHT
move (UNIT_WIDTH-DOOR_SIZE)/2 0
hole --z 1:
…
More code below ↓
N, HO and Other Scale Models