Fix use of roundedPlate in Display and LaserClamp

Thanks to Guillaume Collic (https://github.com/gcollic) for reporting!

Resolves: #248
This commit is contained in:
Florian Festi 2020-10-13 19:58:22 +02:00
parent 6dff8db710
commit 1dd567657e
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class Display(Boxes):
a = self.angle a = self.angle
t = self.thickness 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 oh = 1.2*h-2*r
if a > 0: if a > 0:

View File

@ -91,6 +91,7 @@ parts sliding on each other to reduce friction.
self.topPart(h_max+h_extra, move="right") self.topPart(h_max+h_extra, move="right")
self.bottomPart(h_min, 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)]) callback=[lambda: self.fingerHolesAt(1*t, 2*t, h_min+h_extra)])
self.rectangularWall(1.1*t, h_min+h_extra, "efef") self.rectangularWall(1.1*t, h_min+h_extra, "efef")