Simple cube with tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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