mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
rename single letter variable
This commit is contained in:
parent
a01f91d4e3
commit
1c13402670
1 changed files with 2 additions and 2 deletions
|
@ -129,11 +129,11 @@ class ImageReader(MeshReader):
|
|||
Job.yieldThread()
|
||||
|
||||
if use_transparency_model:
|
||||
p = 1.0 / math.log(transmittance_1mm / 100.0) # log-base doesn't matter here. Precompute this value for faster computation of each pixel.
|
||||
divisor = 1.0 / math.log(transmittance_1mm / 100.0) # log-base doesn't matter here. Precompute this value for faster computation of each pixel.
|
||||
min_luminance = (transmittance_1mm / 100.0) ** (peak_height - base_height)
|
||||
for (y, x) in numpy.ndindex(height_data.shape):
|
||||
mapped_luminance = min_luminance + (1.0 - min_luminance) * height_data[y, x]
|
||||
height_data[y, x] = base_height + p * math.log(mapped_luminance) # use same base as a couple lines above this
|
||||
height_data[y, x] = base_height + divisor * math.log(mapped_luminance) # use same base as a couple lines above this
|
||||
else:
|
||||
height_data *= scale_vector.y
|
||||
height_data += base_height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue