From d3c922d289e432d4a278cf9a63e29c2035c0989d Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 25 Apr 2018 21:53:49 +0200 Subject: [PATCH] RegularBox: Use FingerJointSettings for vertical edges, too Fixes #65 --- boxes/generators/regularbox.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/boxes/generators/regularbox.py b/boxes/generators/regularbox.py index e46757b..cdde9b3 100644 --- a/boxes/generators/regularbox.py +++ b/boxes/generators/regularbox.py @@ -15,7 +15,7 @@ # along with this program. If not, see . from boxes import * - +import copy class RegularBox(Boxes): """Box with regular polygon as base""" @@ -53,7 +53,9 @@ class RegularBox(Boxes): t = self.thickness - edges.FingerJointSettings(self.thickness, True, angle=360./n).edgeObjects(self, chars="gGH") + fingerJointSettings = copy.deepcopy(self.edges["f"].settings) + fingerJointSettings.setValues(self.thickness, angle=360./n) + fingerJointSettings.edgeObjects(self, chars="gGH") r, sh, side = self.regularPolygon(n, radius=r)