mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Slicing logic now index-aware, correctly processes scenes with vertex reuse
This commit is contained in:
parent
8190b9875e
commit
5cb9f97986
1 changed files with 6 additions and 1 deletions
|
@ -148,7 +148,12 @@ class StartSliceJob(Job):
|
|||
|
||||
obj = group_message.addRepeatedMessage("objects")
|
||||
obj.id = id(object)
|
||||
verts = numpy.array(mesh_data.getVertices())
|
||||
verts = mesh_data.getVertices()
|
||||
indices = mesh_data.getIndices()
|
||||
if not indices is None:
|
||||
verts = numpy.array([verts[vert_index] for face in indices for vert_index in face])
|
||||
else:
|
||||
verts = numpy.array(verts)
|
||||
|
||||
# Convert from Y up axes to Z up axes. Equals a 90 degree rotation.
|
||||
verts[:, [1, 2]] = verts[:, [2, 1]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue