mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Update to remove dict of doom.
This commit is contained in:
parent
462b68f389
commit
1726254bd7
2 changed files with 9 additions and 289 deletions
|
@ -10,11 +10,10 @@ import numpy
|
|||
import struct
|
||||
|
||||
class ProcessSlicedObjectListJob(Job):
|
||||
def __init__(self, message, center):
|
||||
def __init__(self, message):
|
||||
super().__init__(description = 'Processing sliced object')
|
||||
self._message = message
|
||||
self._scene = Application.getInstance().getController().getScene()
|
||||
self._center = center
|
||||
|
||||
def run(self):
|
||||
objectIdMap = {}
|
||||
|
@ -46,9 +45,6 @@ class ProcessSlicedObjectListJob(Job):
|
|||
points /= 1000
|
||||
points = numpy.insert(points, 1, layer.id * layerHeight, axis = 1)
|
||||
|
||||
points[:,0] -= self._center.x
|
||||
points[:,2] -= self._center.z
|
||||
|
||||
#points = numpy.pad(points, ((0,0), (0,1)), 'constant', constant_values=(0.0, 1.0))
|
||||
#inverse = node.getWorldTransformation().getInverse().getData()
|
||||
#points = points.dot(inverse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue