mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
More codestyle changes
This commit is contained in:
parent
9bf783df4d
commit
5381c9c74b
1 changed files with 3 additions and 3 deletions
|
@ -138,7 +138,7 @@ class ImageReader(MeshReader):
|
|||
|
||||
# initialize to texel space vertex offsets.
|
||||
# 6 is for 6 vertices for each texel quad.
|
||||
heightmap_vertices = numpy.zeros((width_minus_one * height_minus_one, 6, 3), dtype=numpy.float32)
|
||||
heightmap_vertices = numpy.zeros((width_minus_one * height_minus_one, 6, 3), dtype = numpy.float32)
|
||||
heightmap_vertices = heightmap_vertices + numpy.array([[
|
||||
[0, base_height, 0],
|
||||
[0, base_height, texel_height],
|
||||
|
@ -146,9 +146,9 @@ class ImageReader(MeshReader):
|
|||
[texel_width, base_height, texel_height],
|
||||
[texel_width, base_height, 0],
|
||||
[0, base_height, 0]
|
||||
]], dtype=numpy.float32)
|
||||
]], dtype = numpy.float32)
|
||||
|
||||
offsetsz, offsetsx = numpy.mgrid[0:height_minus_one, 0:width-1]
|
||||
offsetsz, offsetsx = numpy.mgrid[0: height_minus_one, 0: width - 1]
|
||||
offsetsx = numpy.array(offsetsx, numpy.float32).reshape(-1, 1) * texel_width
|
||||
offsetsz = numpy.array(offsetsz, numpy.float32).reshape(-1, 1) * texel_height
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue