From 1dd567657ef5c672a2d46baa1024f28923aff334 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 13 Oct 2020 19:58:22 +0200 Subject: [PATCH] Fix use of roundedPlate in Display and LaserClamp Thanks to Guillaume Collic (https://github.com/gcollic) for reporting! Resolves: #248 --- boxes/generators/display.py | 2 +- boxes/generators/laserclamp.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/boxes/generators/display.py b/boxes/generators/display.py index afac626..686cc2a 100644 --- a/boxes/generators/display.py +++ b/boxes/generators/display.py @@ -41,7 +41,7 @@ class Display(Boxes): a = self.angle t = self.thickness - self.roundedPlate(0.7*x, x, r, "e", move="up") + self.roundedPlate(0.7*x, x, r, "e", extend_corners=False, move="up") oh = 1.2*h-2*r if a > 0: diff --git a/boxes/generators/laserclamp.py b/boxes/generators/laserclamp.py index be3fcf8..9d6dd48 100644 --- a/boxes/generators/laserclamp.py +++ b/boxes/generators/laserclamp.py @@ -91,6 +91,7 @@ parts sliding on each other to reduce friction. self.topPart(h_max+h_extra, move="right") self.bottomPart(h_min, h_extra, move="right") - self.roundedPlate(4*t, h_min+h_extra+4*t, edge="e", r=t, move="right", + self.roundedPlate(4*t, h_min+h_extra+4*t, edge="e", r=t, + extend_corners=False, move="right", callback=[lambda: self.fingerHolesAt(1*t, 2*t, h_min+h_extra)]) self.rectangularWall(1.1*t, h_min+h_extra, "efef")