From: daid303 Date: Mon, 27 May 2013 15:21:19 +0000 (+0200) Subject: Fix rostock options. X-Git-Tag: 13.06.2~35 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=babb0bca980b29df426f2508aa0d67c283194e00;p=cura.git Fix rostock options. --- diff --git a/Cura/util/sliceEngine.py b/Cura/util/sliceEngine.py index 0cbbb8fc..fa25bab0 100644 --- a/Cura/util/sliceEngine.py +++ b/Cura/util/sliceEngine.py @@ -105,7 +105,7 @@ class Slicer(object): with open(self._binaryStorageFilename, "wb") as f: order = scene.printOrder() if order is None: - pos = numpy.array([profile.getPreferenceFloat('machine_width') * 1000 / 2, profile.getPreferenceFloat('machine_depth') * 1000 / 2]) + pos = numpy.array(profile.getMachineCenterCoords()) * 1000 commandList += ['-s', 'posx=%d' % int(pos[0]), '-s', 'posy=%d' % int(pos[1])] vertexTotal = 0 @@ -132,7 +132,7 @@ class Slicer(object): f.write(numpy.array([mesh.vertexCount], numpy.int32).tostring()) f.write(mesh.vertexes.tostring()) pos = obj.getPosition() * 1000 - pos += numpy.array([profile.getPreferenceFloat('machine_width') * 1000 / 2, profile.getPreferenceFloat('machine_depth') * 1000 / 2]) + pos += numpy.array(profile.getMachineCenterCoords()) * 1000 commandList += ['-m', ','.join(map(str, obj._matrix.getA().flatten()))] commandList += ['-s', 'posx=%d' % int(pos[0]), '-s', 'posy=%d' % int(pos[1])] commandList += ['#' * len(obj._meshList)]