From e26d17c840c5a86c883d1e5fad2eb47e3cc10aed Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Fri, 28 Jul 2017 23:33:36 +0200 Subject: [PATCH] AngledBox: Don't overwrite h param Using h as temporary variable was overwriting the variable containing the height of the box. Fixes #41 --- boxes/generators/angledbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/generators/angledbox.py b/boxes/generators/angledbox.py index 1d7f3df..07d2b93 100644 --- a/boxes/generators/angledbox.py +++ b/boxes/generators/angledbox.py @@ -95,10 +95,10 @@ class AngledBox(Boxes): t = self.thickness - r, h, side = self.regularPolygon(2*n+2, h=y/2.0) + r, hp, side = self.regularPolygon(2*n+2, h=y/2.0) if n % 2: - lx = x - 2 * h + side + lx = x - 2 * hp + side else: lx = x - 2 * r + side