AngledBox: Use FingerJointSettings for vertical edges, too

This commit is contained in:
Florian Festi 2019-12-06 23:37:22 +01:00
parent bd1db150c7
commit 093e10a3ac
1 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@
from boxes import *
import math
import copy
class AngledBox(Boxes):
"""Box with both ends cornered"""
@ -100,8 +101,9 @@ class AngledBox(Boxes):
else:
lx = x - 2 * r + side
edges.FingerJointSettings(self.thickness, True, angle=360./(2 * (n+1))).edgeObjects(self, chars="gGH")
fingerJointSettings = copy.deepcopy(self.edges["f"].settings)
fingerJointSettings.setValues(self.thickness, angle=360./(2 * (n+1)))
fingerJointSettings.edgeObjects(self, chars="gGH")
with self.saved_context():
self.floor(x, y , n, edge='F', move="right")