From be168bace093c15df7bd0a7c0f2f196ddb12f270 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 23 Apr 2015 13:49:03 +0200 Subject: [PATCH 1/2] Correct for inverted Z in ProcessSlicedObjectListJob --- ProcessSlicedObjectListJob.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ProcessSlicedObjectListJob.py b/ProcessSlicedObjectListJob.py index e9a7adebd9..23a4c44ff2 100644 --- a/ProcessSlicedObjectListJob.py +++ b/ProcessSlicedObjectListJob.py @@ -49,6 +49,8 @@ class ProcessSlicedObjectListJob(Job): points[:,0] -= self._center.x points[:,2] -= self._center.z + points[:,2] *= -1 + #points = numpy.pad(points, ((0,0), (0,1)), 'constant', constant_values=(0.0, 1.0)) #inverse = node.getWorldTransformation().getInverse().getData() #points = points.dot(inverse) From dcb33be89ffc4e7d4073b818c321acc4d29f2b1f Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 23 Apr 2015 14:03:39 +0200 Subject: [PATCH 2/2] Invert the Y axis when sending data to the engine, not Z Since we just swapped Y and Z it is Y that needs to be inverted, not Z --- CuraEngineBackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CuraEngineBackend.py b/CuraEngineBackend.py index 68a2914d6a..1f637568c0 100644 --- a/CuraEngineBackend.py +++ b/CuraEngineBackend.py @@ -140,7 +140,7 @@ class CuraEngineBackend(Backend): verts = numpy.array(mesh_data.getVertices(), copy=True) verts[:,[1,2]] = verts[:,[2,1]] - verts[:,[2]] *= -1 + verts[:,1] *= -1 obj.vertices = verts.tostring() #if meshData.hasNormals():