32 Commits

Author SHA1 Message Date
Jaime van Kessel
ddb3ed1693 Fix crash in image reader and ensure it actually works
CURA-9125
2022-04-13 16:58:37 +02:00
Remco Burema
abe7c1bf7f
Search/replace Qt5->Qt6.
part of upgrading Qt to v6.2: CURA-8591
2021-12-28 14:46:02 +01:00
Ghostkeeper
d53568c5db
Fix linear-scaling height map thickness
Previously it was using this 'peak_height' which is the total height of the model in scale_vector.y. However it was then multiplying the height map with that scale vector and adding the base height again a second time. So the scaling part was too thick and included the base height, and the total height of the mesh was also too big.
I also reduced an unnecessary re-calculation of the height_from_base parameter. And as a result we don't need the peak_height variable at all any more.

Fixes #8902.
2020-12-09 12:16:56 +01:00
Nino van Hooff
5a3bcb6161 Fix image reader peak height
CURA-7429
2020-05-07 14:29:30 +02:00
Ghostkeeper
96482398f5
Code style 2020-03-05 23:58:12 +01:00
Tim Kuipers
a7e4d76d05 make lithophane alpha channel control total final width multiplier.
That way the picture is not always square. We can use the alpha channel to encode the actual shape
2019-12-16 13:31:11 +01:00
Tim Kuipers
1c13402670 rename single letter variable 2019-10-25 11:17:28 +02:00
Tim Kuipers
a01f91d4e3 omit irrelevant log base 2019-10-25 11:16:32 +02:00
Tim Kuipers
76a538322d simplify formula to make it more numerically stable 2019-10-25 11:16:13 +02:00
Tim Kuipers
03f7fab124 lil fix 2019-10-24 17:26:28 +02:00
Tim Kuipers
5915947a7a fix litho thickness computation 2019-10-24 17:26:28 +02:00
Tim Kuipers
a8b3d7e49d make naming of Logarithmic Conversion Function intelligible 2019-10-24 17:26:28 +02:00
Tim Kuipers
2b55b85a12 fix luminance computation 2019-10-24 17:26:28 +02:00
Tim Kuipers
b88183f4a1 fix translucency model using new permittance setting 2019-10-24 17:26:28 +02:00
Tim Kuipers
88b424d36a feat: use logarithmic conversion for lithophanes 2019-10-24 17:26:28 +02:00
Tim Kuipers
b3d7887d4d fix luminance computation 2019-10-24 17:26:28 +02:00
Tim Kuipers
32d79451cc fix color inversion and make variable naming descriptive 2019-03-22 11:42:31 +01:00
Jaime van Kessel
b4f59a7822 Removed unneeded application reference in construction of meshreaders 2018-06-29 09:25:38 +02:00
Diego Prado Gesto
ddd7b056f3 CURA-5164 Make the mesh readers compliant with the new signature of the mesh reader. Also adapt the tests. 2018-05-23 17:17:41 +02:00
Jack Ha
62487e8ea2 CURA-4525 cleanups and change comment and added new-lines 2018-01-03 15:41:08 +01:00
Jack Ha
e21acd1a07 CURA-4525 first multi slice + multi layer data, added filter on build plate, added option arrange on load, visuals like convex hull are now correct 2017-11-09 17:03:20 +01:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Lipu Fei
b35a97c770 CURA-3495 preRead() takes flexible arguments 2017-03-16 13:37:06 +01:00
Simon Edwards
dfccbf636a Fixed up the ImageReader after the breaking changes else where.
Contributes to CURA-1504
2016-05-19 15:10:31 +02:00
Thomas-Karl Pietrowski
e99099fd89 Cleanup in plugins/ImageReader/ImageReader.py
* Removing unused import
* Marking two variables as @UnusedVariable
* Replacing i with _ in for-loop
2016-03-15 12:50:46 +01:00
Jaime van Kessel
5381c9c74b More codestyle changes 2016-02-15 14:28:27 +01:00
Jaime van Kessel
54e5020975 Codestyle fixes 2016-02-15 14:18:01 +01:00
Ghostkeeper
67c82204ba Fix codestyle issues
They were introduced by b28bfc9602

Contributes to issue CURA-266.
2016-01-22 16:41:07 +01:00
Kurt Loeffler
b28bfc9602 Reworked UI so that it matches 15.04 UI, and made each field in the UI do the same thing that they do in 15.04. 2016-01-13 20:08:42 -08:00
Kurt Loeffler
82b5bbc283 Verify image has been loaded correctly. 2015-12-31 09:46:57 +01:00
Kurt Loeffler
447fdc8fbc Made changed from code review and updated MeshReader plugins to support changes made to Uranium branch MeshReaderDialog. This branch now must be paired with that Uranium branch. 2015-12-31 09:46:57 +01:00
Kurt Loeffler
f5939df085 Put ImageReader plugin in a new clean branch from 2.1. The plugin new uses numpy for geometry generation and image smoothing. 2015-12-31 09:46:56 +01:00