Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Kuipers <t.kuipers@ultimaker.com>2019-10-25 11:38:23 +0300
committerTim Kuipers <t.kuipers@ultimaker.com>2019-10-25 12:17:28 +0300
commit1c134026706d270041a7e97d043cc6d93f505dfb (patch)
treec105d4333319fa5e037f8635dcbb477b7a563f87 /plugins/ImageReader
parenta01f91d4e366d1d1dbec2eb04ceb0e8f6398550d (diff)
rename single letter variable
Diffstat (limited to 'plugins/ImageReader')
-rw-r--r--plugins/ImageReader/ImageReader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ImageReader/ImageReader.py b/plugins/ImageReader/ImageReader.py
index 9bcd245615..d6c2827d16 100644
--- a/plugins/ImageReader/ImageReader.py
+++ b/plugins/ImageReader/ImageReader.py
@@ -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