mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Added line thickness to layer view
This commit is contained in:
parent
c12e6da3ac
commit
9904dad07b
5 changed files with 24 additions and 15 deletions
|
@ -146,12 +146,12 @@ class ProcessSlicedLayersJob(Job):
|
|||
# We are done processing all the layers we got from the engine, now create a mesh out of the data
|
||||
layer_mesh = layer_data.build()
|
||||
# Hack for adding line widths and heights: misuse u, v coordinates.
|
||||
uvs = numpy.zeros([layer_mesh.getVertexCount(), 2], dtype=numpy.float32)
|
||||
uvs[:, 0] = 0.175
|
||||
uvs[:, 1] = 0.125
|
||||
#uvs = numpy.zeros([layer_mesh.getVertexCount(), 2], dtype=numpy.float32)
|
||||
#uvs[:, 0] = 0.175
|
||||
#uvs[:, 1] = 0.125
|
||||
|
||||
from UM.Math import NumPyUtil
|
||||
layer_mesh._uvs = NumPyUtil.immutableNDArray(uvs)
|
||||
#from UM.Math import NumPyUtil
|
||||
#layer_mesh._uvs = NumPyUtil.immutableNDArray(uvs)
|
||||
# mesh._uvs = numpy.zeros([layer_mesh.getVertexCount(), 2])
|
||||
# mesh._uvs[:, 0] = 1.0 # width
|
||||
# mesh._uvs[:, 1] = 0.1 # height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue