From ea0c9480e1fafaab608f0394b800a26b88875e2c Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 16 Jun 2020 22:56:01 +0200 Subject: [PATCH] TriangleLamp: Fix hole position in front --- boxes/generators/trianglelamp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/generators/trianglelamp.py b/boxes/generators/trianglelamp.py index 448d45a..354c14c 100644 --- a/boxes/generators/trianglelamp.py +++ b/boxes/generators/trianglelamp.py @@ -81,8 +81,8 @@ class TriangleLamp(Boxes): self.rectangularTriangle(x, x, num=2, move="up", callback=[ lambda: self.hole(2/3.*c, 1/4.*c, r2), - lambda: self.hole(1/3.*c, 1/3.*c, r2), - lambda: self.hole(2/3.*c, 1/4.*c, r2), + lambda: (self.hole(1/3.*c, 1/3.*c, r2), + self.hole(x-2/3.*c, 1/4.*c, r2)), ]) self.rectangularTriangle(x, x, "fff", num=2, move="up")