PaintStorage: Make grip hole smaller and more rounded

Fixes #108
This commit is contained in:
Florian Festi 2019-01-10 22:09:10 +01:00
parent c0a782b745
commit 371097aa89
1 changed files with 6 additions and 2 deletions

View File

@ -74,9 +74,13 @@ class PaintStorage(Boxes):
stack = self.edges['s'].settings
h = self.canheight - stack.height - stack.holedistance + t
hx = 1/2.*x
hh = h/4.
hr = min(hx, hh) / 2
# render your parts here
self.rectangularWall(h, x, "eseS", callback=[
lambda: self.rectangularHole(h/3, x/2., h/4., 3./4.*x, r=2*t),
lambda: self.rectangularHole(h/3, x/2., hh, hx, r=hr),
lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)],
move="right")
self.rectangularWall(y, x, "efef",
@ -89,7 +93,7 @@ class PaintStorage(Boxes):
self.rectangularWall(y, x, "efef", callback=[self.paintholes],
move="left")
self.rectangularWall(h, x, "eseS", callback=[
lambda: self.rectangularHole(h/3, x/2., h/4., 3./4.*x, r=2*t),
lambda: self.rectangularHole(h/3, x/2., hh, hx, r=hr),
lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)],
move="left")
self.close()