From 74368277d56b7f204071b920e3abff03eaaeb21d Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 28 Aug 2024 21:27:33 +0200 Subject: [PATCH] Use bottom_stabilizers from StackableEdge --- boxes/generators/stackablebin.py | 4 +- examples/StackableBin.svg | 70 +++++++++++++++++--------------- 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/boxes/generators/stackablebin.py b/boxes/generators/stackablebin.py index 0ce0aac0..319965ff 100644 --- a/boxes/generators/stackablebin.py +++ b/boxes/generators/stackablebin.py @@ -44,7 +44,7 @@ class StackableBin(Boxes): def __init__(self) -> None: Boxes.__init__(self) - self.addSettingsArgs(edges.StackableSettings) + self.addSettingsArgs(edges.StackableSettings, bottom_stabilizers=2.4) self.addSettingsArgs(edges.FingerJointSettings, surroundingspaces=0.5) self.buildArgParser("outside") self.buildArgParser(x=70, h=50) @@ -82,5 +82,3 @@ def render(self): self.rectangularWall(self.d, self.h, "shSb", label="left", move="up") self.rectangularWall(self.d, self.h, "shSb", label="right", move="mirror up") - self.rectangularWall(self.d-self.thickness*2.1, 2.4, "EEEE", label="left bottom endstop", move="up") - self.rectangularWall(self.d-self.thickness*2.1, 2.4, "EEEE", label="right bottom endstop", move="up") diff --git a/examples/StackableBin.svg b/examples/StackableBin.svg index 29c99aee..2c980d00 100644 --- a/examples/StackableBin.svg +++ b/examples/StackableBin.svg @@ -1,5 +1,5 @@ - +