TypeTray: Use h edge for sides if back_height is set
Better support pulling forces if tray is screwed to a wall.
This commit is contained in:
parent
a0f8fdd975
commit
8b791b32b6
|
@ -107,15 +107,19 @@ class TypeTray(_TopEdge):
|
||||||
self.ctx.save()
|
self.ctx.save()
|
||||||
|
|
||||||
# outer walls
|
# outer walls
|
||||||
self.rectangularWall(x, h+bh, [b, "F", t1, "F"],
|
|
||||||
callback=[self.xHoles, None, self.gripHole],
|
|
||||||
ignore_widths=[] if bh else [1, 6],
|
|
||||||
move="up")
|
|
||||||
if bh:
|
if bh:
|
||||||
|
self.rectangularWall(x, h+bh, [b, "f", t1, "f"],
|
||||||
|
callback=[self.xHoles, None, self.gripHole],
|
||||||
|
ignore_widths=[],
|
||||||
|
move="up")
|
||||||
self.rectangularWall(x, h, [b, "f", t3, "f"],
|
self.rectangularWall(x, h, [b, "f", t3, "f"],
|
||||||
callback=[self.mirrorX(self.xHoles, x), ],
|
callback=[self.mirrorX(self.xHoles, x), ],
|
||||||
move="up")
|
move="up")
|
||||||
else:
|
else:
|
||||||
|
self.rectangularWall(x, h, [b, "F", t1, "F"],
|
||||||
|
callback=[self.xHoles, None, self.gripHole],
|
||||||
|
ignore_widths=[1, 6],
|
||||||
|
move="up")
|
||||||
self.rectangularWall(x, h, [b, "F", t3, "F"],
|
self.rectangularWall(x, h, [b, "F", t3, "F"],
|
||||||
callback=[self.mirrorX(self.xHoles, x), ],
|
callback=[self.mirrorX(self.xHoles, x), ],
|
||||||
ignore_widths=[1, 6], move="up")
|
ignore_widths=[1, 6], move="up")
|
||||||
|
@ -155,10 +159,10 @@ class TypeTray(_TopEdge):
|
||||||
|
|
||||||
if bh:
|
if bh:
|
||||||
self.trapezoidSideWall(
|
self.trapezoidSideWall(
|
||||||
y, h, h+bh, [b, "f", "e", "h"],
|
y, h, h+bh, [b, "h", "e", "h"],
|
||||||
radius=self.radius, callback=[self.yHoles, ], move="up")
|
radius=self.radius, callback=[self.yHoles, ], move="up")
|
||||||
self.trapezoidSideWall(
|
self.trapezoidSideWall(
|
||||||
y, h+bh, h, [b, "h", "e", "f"], radius=self.radius,
|
y, h+bh, h, [b, "h", "e", "h"], radius=self.radius,
|
||||||
callback=[self.mirrorX(self.yHoles, y), ], move="up")
|
callback=[self.mirrorX(self.yHoles, y), ], move="up")
|
||||||
else:
|
else:
|
||||||
self.rectangularWall(
|
self.rectangularWall(
|
||||||
|
|
Loading…
Reference in New Issue