diff options
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, |