Skip to content

Commit

Permalink
[rack19box] more laser-cutter-friendly layout
Browse files Browse the repository at this point in the history
My laser cutter is pretty big, but not big enough for two 19-inch parts side-by-side. Assuming that most users are going to be in a similar position, this stacks the widest parts vertically
  • Loading branch information
shish authored and florianfesti committed Nov 28, 2023
1 parent c52bf17 commit 6ea40ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions boxes/generators/rack19box.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ def _render(self, type):

self.rectangularWall(y, h, "ffef", callback=[self.wallyCB],
move="right", label="right")
self.rectangularWall(x, h, "fFeF", callback=[self.wallxCB],
move="up", label="back")
self.flangedWall(x, h, "FFEF", callback=[self.wallxfCB], r=t,
flanges=[0., 17., -t, 17.], label="front")
flanges=[0., 17., -t, 17.], move="up", label="front")
self.rectangularWall(x, h, "fFeF", callback=[self.wallxCB],
label="back")
self.rectangularWall(y, h, "ffef", callback=[self.wallyCB],
move="left up", label="left")

self.rectangularWall(x, y, "fFFF", move="right", label="bottom")
self.rectangularWall(x, y, "fFFF", move="up", label="bottom")
self.rectangularWall(x, y, callback=[
lambda:self.hole(trh, trh, d=d2)] * 4, move='up', label="lid")
lambda:self.hole(trh, trh, d=d2)] * 4, move='right', label="lid")

self.rectangularTriangle(tr, tr, "ffe", num=4,
callback=[None, lambda: self.hole(trh, trh, d=d1)])
Expand Down

0 comments on commit 6ea40ae

Please sign in to comment.