From 6d33ab3e8d0a4d3c3e3ff3782e0bc24094de9d8a Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Mon, 31 Oct 2022 20:05:34 +0100 Subject: Add flap parameter to telescoping box --- telescoping_box.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/telescoping_box.py b/telescoping_box.py index c7baf73..53a83bb 100755 --- a/telescoping_box.py +++ b/telescoping_box.py @@ -271,6 +271,12 @@ class Command(hazwaz.MainCommand): type=int, default=297, ) + parser.add_argument( + "--flap", + help="height of the flap, in millimiters", + type=int, + default=15 + ) def main(self): size_spec = "{}×{}×{}".format( @@ -292,7 +298,10 @@ class Command(hazwaz.MainCommand): size=paper_size, profile='full', ) - struc = Lid(self.args.size_x, self.args.size_y, self.args.size_z) + struc = Lid( + self.args.size_x, self.args.size_y, self.args.size_z, + flap=self.args.flap, + ) struc.add_to( dest, canvas_x=self.args.paper_width * mm, @@ -309,7 +318,10 @@ class Command(hazwaz.MainCommand): size=paper_size, profile='full', ) - struc = Base(self.args.size_x, self.args.size_y, self.args.size_z) + struc = Base( + self.args.size_x, self.args.size_y, self.args.size_z, + flap=self.args.flap, + ) struc.add_to( dest, canvas_x=self.args.paper_width * mm, -- cgit v1.2.3