mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-04 06:43:59 +08:00
Merge fix, and update to json file to get all engine settings in there.
This commit is contained in:
commit
23e5bcc55b
@ -141,7 +141,7 @@ class CuraEngineBackend(Backend):
|
|||||||
|
|
||||||
verts = numpy.array(mesh_data.getVertices(), copy=True)
|
verts = numpy.array(mesh_data.getVertices(), copy=True)
|
||||||
verts[:,[1,2]] = verts[:,[2,1]]
|
verts[:,[1,2]] = verts[:,[2,1]]
|
||||||
verts[:,[2]] *= -1
|
verts[:,1] *= -1
|
||||||
obj.vertices = verts.tostring()
|
obj.vertices = verts.tostring()
|
||||||
|
|
||||||
#if meshData.hasNormals():
|
#if meshData.hasNormals():
|
||||||
|
@ -45,6 +45,8 @@ class ProcessSlicedObjectListJob(Job):
|
|||||||
points /= 1000
|
points /= 1000
|
||||||
points = numpy.insert(points, 1, layer.id * layerHeight, axis = 1)
|
points = numpy.insert(points, 1, layer.id * layerHeight, axis = 1)
|
||||||
|
|
||||||
|
points[:,2] *= -1
|
||||||
|
|
||||||
#points = numpy.pad(points, ((0,0), (0,1)), 'constant', constant_values=(0.0, 1.0))
|
#points = numpy.pad(points, ((0,0), (0,1)), 'constant', constant_values=(0.0, 1.0))
|
||||||
#inverse = node.getWorldTransformation().getInverse().getData()
|
#inverse = node.getWorldTransformation().getInverse().getData()
|
||||||
#points = points.dot(inverse)
|
#points = points.dot(inverse)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user