RegularBox: Use FingerJointSettings for vertical edges, too

Fixes #65
This commit is contained in:
Florian Festi 2018-04-25 21:53:49 +02:00
parent 73438fb614
commit d3c922d289
1 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
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)