Skip to content

Commit

Permalink
RackBox: Fix height of front
Browse files Browse the repository at this point in the history
Also fix the position of the mounting holes.

Thanks to https://github.com/unsigneduk for reporting!

Resolves: #683
  • Loading branch information
florianfesti committed Jun 15, 2024
1 parent eac8fdd commit 6174b32
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions boxes/generators/rackbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def wallyCB(self):
def render(self):

t = self.thickness
self.h = h = self.h + 2*t # compensate for lid
x, y, h = self.x, self.y, self.h
d1, d2, d3 =self.d1, self.d2, self.d3
hd = self.holedist
Expand All @@ -75,13 +74,15 @@ def render(self):
if self.outside:
self.x = x = self.adjustSize(x)
self.y = y = self.adjustSize(y)
self.h = h = h - 3*t
self.h = h = h - 1 * t
else:
self.h = h = h + 2 * t # compensate for lid

self.rectangularWall(x, h, "fFeF", callback=[self.wallxCB],
move="right")
self.rectangularWall(y, h, "ffef", callback=[self.wallyCB], move="up")
self.flangedWall(x, h, "FFeF", callback=[self.wallxfCB], r=t,
flanges=[0., 2*hd, -t, 2*hd])
flanges=[0., 2*hd, 0, 2*hd])
self.rectangularWall(y, h, "ffef", callback=[self.wallyCB],
move="left up")

Expand Down

0 comments on commit 6174b32

Please sign in to comment.