mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add not using numpy.insert explanation to ProcessSlicedObjectJob
Contributes to CURA-708
This commit is contained in:
parent
ef206f5ab7
commit
66a9c63048
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ class ProcessSlicedObjectListJob(Job):
|
|||
points = points.reshape((-1,2)) # We get a linear list of pairs that make up the points, so make numpy interpret them correctly.
|
||||
|
||||
# Create a new 3D-array, copy the 2D points over and insert the right height.
|
||||
# This uses manual array creation + copy rather than numpy.insert since this is
|
||||
# faster.
|
||||
new_points = numpy.empty((len(points), 3), numpy.float32)
|
||||
new_points[:,0] = points[:,0]
|
||||
new_points[:,1] = layer.height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue