diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2022-10-31 20:05:34 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2022-10-31 20:05:34 +0100 |
commit | 6d33ab3e8d0a4d3c3e3ff3782e0bc24094de9d8a (patch) | |
tree | 42595aab1c6b0d6fcd50431126ff5b125a79cac7 /telescoping_box.py | |
parent | d981e03ee07c4486ec161fa84e15da711109243e (diff) |
Add flap parameter to telescoping box
Diffstat (limited to 'telescoping_box.py')
-rwxr-xr-x | telescoping_box.py | 16 |
1 files 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, |