box.py: Make sides symetric and add top

This commit is contained in:
Florian Festi 2014-01-21 22:40:21 +01:00
parent 5aa75ba4d9
commit 82ebbf09ed
1 changed files with 6 additions and 5 deletions

11
box.py
View File

@ -17,18 +17,19 @@ class Box(Boxes):
d2 = d3 = None
self.moveTo(t, t)
self.rectangularWall(x, h, "FFeF", bedBolts=d2, move="right")
self.rectangularWall(y, h, "Ffef", bedBolts=d3, move="up")
self.rectangularWall(y, h, "Ffef", bedBolts=d3)
self.rectangularWall(x, h, "FFeF", bedBolts=d2, move="left up")
self.rectangularWall(x, h, "FFFF", bedBolts=d2, move="right")
self.rectangularWall(y, h, "FfFf", bedBolts=d3, move="up")
self.rectangularWall(y, h, "FfFf", bedBolts=d3)
self.rectangularWall(x, h, "FFFF", bedBolts=d2, move="left up")
self.rectangularWall(x, y, "ffff", bedBolts=[d2, d3, d2, d3], move="right")
self.rectangularWall(x, y, "ffff", bedBolts=[d2, d3, d2, d3])
self.ctx.stroke()
self.surface.flush()
self.surface.finish()
b = Box(200, 200, 200, thickness=4.0)
b = Box(140, 202, 50, thickness=4.0)
b.edges["f"].settings.setValues(b.thickness, space=3, finger=3,
surroundingspaces=1)
b.render()