summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-10-31 20:05:34 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-10-31 20:05:34 +0100
commit6d33ab3e8d0a4d3c3e3ff3782e0bc24094de9d8a (patch)
tree42595aab1c6b0d6fcd50431126ff5b125a79cac7
parentd981e03ee07c4486ec161fa84e15da711109243e (diff)
Add flap parameter to telescoping box
-rwxr-xr-xtelescoping_box.py16
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,