DividerTray: Add a bit of play to the dividers

Especially the divider over the whole width can use some play for the
slots to avoid them clamping onto the walls.

Related: #374
This commit is contained in:
Florian Festi 2022-03-21 17:53:30 +01:00
parent 3bf4be5e1d
commit 67bd25016b
1 changed files with 6 additions and 5 deletions

View File

@ -252,9 +252,10 @@ class DividerTray(Boxes):
upper_radius = self.divider_upper_notch_radius
lower_radius = self.divider_lower_notch_radius
play = 0.05 * self.thickness
# Upper: first tab width
self.edge(first_tab_width)
self.edge(first_tab_width - play)
for nr, width in enumerate(widths):
if nr > 0:
@ -280,7 +281,7 @@ class DividerTray(Boxes):
self.polyline(
# Upper: second tab width if needed
second_tab_width,
second_tab_width - play,
# First side, with tab depth only if there is 2 walls
90,
self.slot_depth,
@ -291,17 +292,17 @@ class DividerTray(Boxes):
90)
# Lower edge
for width in reversed(widths[1:]):
self.polyline(width, 90,
self.polyline(width - 2 * play, 90,
height - self.slot_depth,
-90,
self.thickness,
self.thickness + 2 * play,
-90,
height - self.slot_depth,
90)
self.polyline(
# Second side tab
widths[0],
widths[0] - 2 * play,
90,
height - self.slot_depth,
-90,