From db3812212559e0c30fc888a124ccee0b9fa70f54 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 3 Aug 2016 20:39:10 +0200 Subject: [PATCH] Remove unnecessary moveTo() commands .move() now leaves some space around parts --- boxes/generators/box.py | 1 - boxes/generators/drillbox.py | 1 - boxes/generators/flextest2.py | 3 +-- boxes/generators/trayinsert.py | 1 - boxes/generators/typetray.py | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/boxes/generators/box.py b/boxes/generators/box.py index b237b9f..9cef962 100755 --- a/boxes/generators/box.py +++ b/boxes/generators/box.py @@ -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) diff --git a/boxes/generators/drillbox.py b/boxes/generators/drillbox.py index 7b9195c..e33c9a4 100755 --- a/boxes/generators/drillbox.py +++ b/boxes/generators/drillbox.py @@ -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]) diff --git a/boxes/generators/flextest2.py b/boxes/generators/flextest2.py index 1017627..70c3a88 100644 --- a/boxes/generators/flextest2.py +++ b/boxes/generators/flextest2.py @@ -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() diff --git a/boxes/generators/trayinsert.py b/boxes/generators/trayinsert.py index e2221da..d51a3e7 100755 --- a/boxes/generators/trayinsert.py +++ b/boxes/generators/trayinsert.py @@ -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): diff --git a/boxes/generators/typetray.py b/boxes/generators/typetray.py index ab11204..f01aa2f 100755 --- a/boxes/generators/typetray.py +++ b/boxes/generators/typetray.py @@ -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],