Skip to content

Instantly share code, notes, and snippets.

@mkeeter
Created Aug 24, 2012
Embed
What would you like to do?
Simple cube with tabs
from cad_shapes import *
# Render boundaries
cad.xmin = -1
cad.xmax = 6
cad.ymin = -1
cad.ymax = 6
cad.mm_per_unit = 25.4 # inch units
r = rectangle(0, 5, 0, 5)
t = '0'
for i in range(1,5):
t += tab(i, 0, 0.5, 0.2, 180)
r += t + reflect_y(t, 5)
r += reflect_x(rotate(t, 90))
r += reflect_x(reflect_x(rotate(t, 90)), 5)
cad.function = r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment