StorageShelf: Add retainer_hole_edge param

to allow strengthening the retainer walls by using an h edge.
Also use a h edge on the bottom retainer wall if selected as bottom_edge.
This commit is contained in:
Florian Festi 2019-11-09 23:32:12 +01:00
parent e8cda89381
commit c67d1f874c
1 changed files with 7 additions and 1 deletions

View File

@ -32,6 +32,9 @@ class StorageShelf(_TopEdge):
self.argparser.add_argument(
"--retainer", action="store", type=float, default=0.0,
help="height of wall atthe front edges")
self.argparser.add_argument(
"--retainer_hole_edge", action="store", type=boolarg, default=False,
help="use finger hole edge for retainer walls")
@ -138,4 +141,7 @@ class StorageShelf(_TopEdge):
if self.retainer:
for i in range(len(self.sh)):
# XXX finger holes, F edges, left and right
self.rectangularWall(y, self.retainer, "FEeE", move="up")
e = "FEeE"
if self.retainer_hole_edge or (i == 0 and b == "h"):
e = "hEeE"
self.rectangularWall(y, self.retainer, e, move="up")