Commit graph

10246 commits

Author SHA1 Message Date
Erwan MATHIEU
a2db7b3004 Fix clear painting with optimized painting mechanisms
CURA-12731
2025-09-22 11:40:56 +02:00
HellAholic
c890a553dd
Merge branch '5.11' into CURA-12731_fix-crash-when-loading-a-second-paint-model 2025-09-22 09:22:13 +02:00
Erwan MATHIEU
86f509c147 Update translations 2025-09-22 08:55:58 +02:00
Erwan MATHIEU
4c92ce6644 Fix crash after loading a second model for painting
CURA-12731
2025-09-19 16:16:47 +02:00
Erwan MATHIEU
6cf1f2df2a Optimize painting display performance
CURA-12731
2025-09-19 16:01:41 +02:00
Erwan MATHIEU
8e5e655fe0 Merge remote-tracking branch 'origin/main' into CURA-12662_paint_splatter_issue 2025-09-19 13:39:15 +02:00
Erwan MATHIEU
a663d14400
Merge branch 'main' into CURA-12449_handling-painted-models-map 2025-09-19 13:33:41 +02:00
Erwan MATHIEU
0a133ff92c Fix shader compatibility
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
CURA-12662
2025-09-19 10:28:20 +02:00
Erwan MATHIEU
9ee0169410 Merge remote-tracking branch 'origin/CURA-12662_paint_splatter_issue' into CURA-12663_paintbrush_preview
Some checks are pending
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
2025-09-18 15:57:57 +02:00
Erwan MATHIEU
889e65e11d Optimize polygons projection
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
CURA-12662
Use a numpy-vectorized function to process the barycentric projection, this is much faster
2025-09-18 15:51:09 +02:00
Erwan MATHIEU
76b3b5bf78
Merge branch 'main' into CURA-12333_usb_plugin_stopper 2025-09-18 07:51:02 +02:00
Erwan MATHIEU
cf1486b880 Merge polygons rasterization to common function
CURA-12662
2025-09-17 13:27:27 +02:00
Erwan MATHIEU
188109c41e Optimize painting by getting the list of painted faces
CURA-12662
2025-09-17 09:18:24 +02:00
Erwan MATHIEU
8382a96f05 Optimize painting
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
CURA-12662
2025-09-15 16:10:19 +02:00
Erwan MATHIEU
a6a560b93d Display exact paint cursor
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
CURA-12663
2025-09-15 14:39:50 +02:00
Erwan MATHIEU
0830fd23ce Fix cursor display
Some checks failed
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
conan-package-resources / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
CURA-12663
2025-09-15 09:18:58 +02:00
Erwan MATHIEU
24721fbec6 Merge branch 'CURA-12662_paint_splatter_issue' into CURA-12663_paintbrush_preview 2025-09-15 09:17:10 +02:00
HellAholic
c2793ef750
Merge pull request #20489 from GregValiant/ZhopOnTravel
Create ZHopOnTravel.py
2025-09-14 15:27:04 +02:00
GregValiant
7ca3a2a9bf Update TweakAtZ.py
Made changes per review requests.

Update TweakAtZ.py

One more change.
2025-09-14 09:13:37 -04:00
HellAholic
061944c8a7 add a limiter to the z-height hop 2025-09-14 10:14:43 +02:00
GregValiant
7420f2486d Create TweakAtZ.py
This is a re-write of Change At Z.  The name change was necessary to avoid conflicting names in earlier project files.
2025-09-13 15:10:39 -04:00
HellAholic
778ffb930c Adjust based on review comments 2025-09-13 17:15:54 +02:00
HellAholic
aaafd153c8
Merge branch 'main' into ZhopOnTravel 2025-09-13 14:44:06 +02:00
Erwan MATHIEU
b88e46dd5e Fix variable and add exception log
Some checks failed
conan-package-resources / conan-package (push) Has been cancelled
conan-package / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
CURA-12688
2025-09-12 16:32:55 +02:00
Erwan MATHIEU
08eac57c04 Merge remote-tracking branch 'origin/main' into CURA-12662_paint_splatter_issue 2025-09-12 16:15:25 +02:00
Erwan MATHIEU
4d8dd6441a
Merge branch 'main' into CURA-12333_usb_plugin_stopper
Some checks failed
conan-package-resources / conan-package (push) Has been cancelled
conan-package / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
2025-09-12 11:56:03 +02:00
Remco Burema
9b6c3aa621 Disable USB-cable-printing by default (except for people who used it already).
We set the preference value for people who used USB-printing in the previous version, from the next version onwards, it'll be disabled by default -- as not many people still print by USB-cable, and more importantly, it can mess up some systems. It's not going away at the moment though.

CURA-12333
2025-09-11 21:29:00 +02:00
Erwan MATHIEU
e2b19731ab
Merge branch 'main' into CURA-12449_handling-painted-models-map
Some checks are pending
conan-package-resources / conan-package (push) Waiting to run
conan-package-resources / signal-curator (push) Blocked by required conditions
conan-package / conan-package (push) Waiting to run
printer-linter-format / Printer linter auto format (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
2025-09-11 09:00:07 +02:00
Remco Burema
a8ac8e9332 Forgot to update this (needed for authentication).
part of CURA-12624
2025-09-10 10:26:39 +02:00
Remco Burema
70a8f9b0a3 Use machine-node-ID as username.
Otherwise there's _still_ personal information in there.

part of CURA-12624
2025-09-10 10:26:12 +02:00
Remco Burema
7fc87cb4c1 Fill in correct nonce and nonce-count for cluster-auth.
part of CURA-12624
2025-09-10 10:25:55 +02:00
Frederic Meeuwissen
6b1f29cdb1 Fix crash on AttributeError 2025-09-10 10:25:08 +02:00
Remco Burema
75fc0782da Code review: Replace string with enum.
First use of 3.11's StrEnum in the code base I think -- anyway, Python autoboxes these (maybe even the old str,enum things as well, but irrelevant now), so there's nothing in the way of making this an enum and have type-_checking_ instead of type-_o_'s.

done as part of CURA-12624
2025-09-10 10:24:00 +02:00
Remco Burema
7f35a5074b Make authentication info a little less brittle.
Otherwise if the server (on the printer) gives back something that can be parsed into JSON, but _isn't_ the authorization digest info, the thing breaks.

part of CURA-12624
2025-09-10 10:23:25 +02:00
Remco Burema
115d2d5b77 Fix 2 calls w.r.t. new authorization workflow _outside_ of the API.
New rules means we have to put printjobs and such behind a little authentication, as these contain personally identifiable info. These two effected calls where found _outside_ of the API class where I thought to be able to fix it 100%. See also the TODO's in the neighbourhood -- but I'm not sure I can just do what those say (move the relevant methods to the API), as those methods to be moved are _inside_ the larger Cura SDK (and they're public) and the place where I'm meant to move them to (the ClusterAPIClient) is _not_ (as they're in a plugin).

part of CURA-12624
2025-09-10 10:23:14 +02:00
Remco Burema
34eac462bd More authentication, since printer-API call-responses can include user-info.
The new regulations make a decent amount of sense -- but just because we agree with them doesn't mean we'd implemented this yet. Anyway, information wich can be used to personally identify people should be kept behind (virtual) locks and bars. The new firmware will only allow certain operations _after_ a request has been made to the .../auth/request endpoint, and someone in the physical vicinity (of the printer) has pressed ALLOW on a popup (with the application and name of the requester shown, on the printers' UI). After that, _as long as you put the relevant Authorization Digest in your HTTP headers_ (and use at least SHA-256), you may proceed to make other requests without the printer-server flipping out with a FORBIDDEN error.

The current commit _should_ also still work with printers that still have old (well, current I guess...) firmware -- but I didn't test that yet.

CURA-12624
2025-09-10 10:22:59 +02:00
HellAholic
670f732e89
Merge branch 'main' into ZhopOnTravel 2025-09-03 13:31:25 +02:00
HellAholic
c1d12709b4
Merge branch 'main' into Annealing 2025-09-03 13:29:16 +02:00
HellAholic
bfefad0c94
Merge branch 'main' into DisplayInfoOnLCD 2025-09-03 13:19:03 +02:00
HellAholic
02dbc7e6e1 add temp shortcuts
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
2025-08-27 15:02:22 +02:00
HellAholic
88b4b0729c
Merge branch 'main' into CURA-12661_make-more-global-paint-undo 2025-08-26 13:05:43 +02:00
HellAholic
a55cca73f4 Apply Review
clear_mask -> clear_texture_bit_mask
2025-08-26 13:05:56 +02:00
Remco Burema
10897e2b71 Painting: Show brush-preview when moving the mouse over.
CURA-12663
2025-08-23 22:42:47 +02:00
HellAholic
627e7f3c99
Merge pull request #20840 from Ultimaker/CURA-12660_painting-UI-improvements
Cura 12660 painting UI improvements
2025-08-21 09:58:53 +02:00
Remco Burema
fec24bfb19 Make sure the paint-strokes are as solid as before.
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
For fixing the paint-splatter issue Iswitched to a new way of drawing the polygon, which could result in missed strokes of pixels at the edge of (UV) polygons. This change should catch most of the remaining X% where that happened.

done as part of CURA-12662
2025-08-20 16:38:02 +02:00
Remco Burema
8bab847594 Remap-barycentric was slowing things down; optimize.
Some checks are pending
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
It was using the old (well, relatively speaking ... from the start of development of the current paint-epic) getIntersectRatioViaPt (three times no less), which was massive overkill for what we're trying to accomplish here.

done as part of CURA-12662
2025-08-20 15:13:03 +02:00
Remco Burema
1f60829959 Cleaning, small optimizations.
part of CURA-12662
2025-08-20 09:21:04 +02:00
Remco Burema
9bc1294ce1 Remove useless parameters (use already cached values instead).
Some checks are pending
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
part of CURA-12662
2025-08-19 09:08:09 +02:00
Remco Burema
28dc0cd32a PaintTool: Optimization refactors.
Don't have so many function-calls in performant code and cache camera-related variables until the camera moves again.

part of CURA-12662
2025-08-19 08:55:55 +02:00
Remco Burema
d339e092e7 Painting: Make fill-polygon miss less gaps.
Some checks are pending
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
... but one of the problems is that it doesn't give an outline.

part of CURA-12662
2025-08-18 22:35:18 +02:00