PaintStorage: Optimize part placement

This commit is contained in:
Florian Festi 2018-10-29 15:44:18 +01:00
parent c28541a977
commit 36077e6cb0
1 changed files with 7 additions and 8 deletions

View File

@ -63,18 +63,17 @@ class PaintStorage(Boxes):
h = t*(self.Stackable_holedistance+2*self.Stackable_height+1)+self.canheight
# render your parts here
self.rectangularWall(x, h, "seSe", callback=[lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)],
self.rectangularWall(h, x, "eseS", callback=[None, lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)],
move="right")
self.rectangularWall(x, h, "seSe", callback=[lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)],
move="right")
self.rectangularWall(y, x, "efef", callback=[self.paintholes],
move="up")
self.rectangularWall(y, x, "efef",
move="right")
self.rectangularWall(t*(self.Stackable_holedistance+2*self.Stackable_height), x, "eeee",
move="right")
move="up")
self.rectangularWall(t*(self.Stackable_holedistance+2*self.Stackable_height), x, "eeee",
move="down")
move="")
self.rectangularWall(y, x, "efef", callback=[self.paintholes],
move="left")
self.rectangularWall(h, x, "eseS", callback=[None, lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)],
move="left")
self.close()