From 8d166db8a7c5288583778da0b7ca835546c88c6e Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Fri, 13 Jan 2023 19:23:47 +0100 Subject: [PATCH] fix thickness --- .../box_maker_living_hinge/box_maker_living_hinge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz/box_maker_living_hinge/box_maker_living_hinge.py b/extensions/fablabchemnitz/box_maker_living_hinge/box_maker_living_hinge.py index b1774db..65b36a6 100644 --- a/extensions/fablabchemnitz/box_maker_living_hinge/box_maker_living_hinge.py +++ b/extensions/fablabchemnitz/box_maker_living_hinge/box_maker_living_hinge.py @@ -417,7 +417,7 @@ class BoxMakerLivingHinge(inkex.EffectExtension): #center middle row [(2,0,0,1),(2,0,0,1),X,Y,0b0000,0], #right middle row - [(3,1,0,1),(2,0,0,1),Z/2+(self.EllipseCircumference(X/2, Z/2)/4) + X/2,Y,0b1011,1], + [(3,1,0,1),(2,0,0,1),Z/2+(self.EllipseCircumference(X/2, Z/2)/4) + X/2 - thickness,Y,0b1011,1], #center top row [(2,0,0,1),(1,0,0,0),X,Z,0b0010,-1]] elif layout==1: # Inline(compact) Layout @@ -430,7 +430,7 @@ class BoxMakerLivingHinge(inkex.EffectExtension): #Side with curves #2 [(4,2,0,1),(1,0,0,0),X,Z,0b0010,-1], #Long piece w/ hinge - [(5,3,0,1),(1,0,0,0),Z/2+(self.EllipseCircumference(X/2, Z/2)/4) + X/2,Y,0b1011,1] + [(5,3,0,1),(1,0,0,0),Z/2+(self.EllipseCircumference(X/2, Z/2)/4) + X/2 - thickness,Y,0b1011,1] ] for piece in pieces: # generate and draw each piece of the box