Remove unnecessary moveTo() commands

.move() now leaves some space around parts
This commit is contained in:
Florian Festi 2016-08-03 20:39:10 +02:00
parent ea0b088356
commit db38122125
5 changed files with 1 additions and 6 deletions

View File

@ -43,7 +43,6 @@ class Box(Boxes):
d2 = d3 = None
self.moveTo(t, t)
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)

View File

@ -57,7 +57,6 @@ in 0.5mm steps, 3 holes each size"""
self.edges["f"].settings.setValues(self.thickness, space=3, finger=3,
surroundingspaces=1)
self.moveTo(t, t)
self.rectangularWall(x, h, "FfeF", callback=[self.holesx],move="right")
self.rectangularWall(y, h, "FfeF", callback=[self.holesy], move="up")
self.rectangularWall(y, h, "FfeF", callback=[self.holesy])

View File

@ -17,7 +17,7 @@
from boxes import *
class FlexTest2(Boxes):
"Piece for testing different flex settings"
"Piece for testing 2D flex settings"
def __init__(self):
Boxes.__init__(self)
self.buildArgParser("x", "y")
@ -29,7 +29,6 @@ class FlexTest2(Boxes):
x, y = self.x, self.y
t = self.thickness
self.open()
self.moveTo(t, t)
self.rectangularWall(x, y, callback=[lambda:self.flex2D(x, y, self.fw)])
self.close()

View File

@ -33,7 +33,6 @@ class TrayInsert(Boxes):
t = self.thickness
self.open()
self.moveTo(t, t)
# Inner walls
for i in range(len(self.sx)-1):

View File

@ -87,7 +87,6 @@ class TypeTray(Boxes):
self.open()
self.moveTo(t, t)
# outer walls
self.rectangularWall(x, h, "Ffef", callback=[
self.xHoles, None, self.gripHole],