feat: DividerTray make the play optional

This commit is contained in:
Guillaume Collic 2022-03-27 22:17:09 +02:00 committed by Florian Festi
parent 95e5c26b4d
commit 3d2a4819ac
1 changed files with 7 additions and 2 deletions

View File

@ -82,6 +82,12 @@ class DividerTray(Boxes):
default=15,
help="divider's notch's depth",
)
self.argparser.add_argument(
"--divider_play",
type=float,
default=0.15,
help="divider's play to avoid them clamping onto the walls",
)
self.argparser.add_argument(
"--left_wall",
type=boolarg,
@ -264,8 +270,7 @@ class DividerTray(Boxes):
return
# Upper edge with a finger notch
play = 0.05 * self.thickness
play = self.divider_play
# Upper: first tab width
self.edge(first_tab_width - play)