7628 Commits

Author SHA1 Message Date
Erwan MATHIEU
3ebeb0a661 Set a brand to empty material to avoid later crash
CURA-11089
2023-09-26 13:59:45 +02:00
j.spijker@ultimaker.com
e9f316d5d9 Add logging and cleanup for backend plugins
This commit adds improved logging for backend plugins in Cura. Now,
each time a plugin is started, an info log is generated with the used
command.
All plugin output will also be logged to a separate file for easier
debugging. Additionally, a cleanup operation has been added to remove
existing plugin logs before generating a new one, to prevent the file
size from getting too large.

Contributes to CURA-11064
2023-09-20 14:45:04 +02:00
j.spijker@ultimaker.com
a9f2d879f7 "Add logging to backend plugin process"
This commit introduces logging to the backend plugin process in the Cura application. The output from the plugin process is now redirected to a log file, which is created in the application's data storage directory. This can be useful for debugging and troubleshooting purposes by providing more transparency about what's happening in the plugin process. A new dependency 'os' has been added to the 'BackendPlugin.py'. Also, the 'Resources' module has been imported from 'UM'. The changes mainly affect the way the 'subproccess.Popen' function is used - its 'stdout' and 'stderr' parameters were adjusted accordingly.

Contributes to CURA-11064
2023-09-20 14:37:35 +02:00
j.spijker@ultimaker.com
5cd233b1cf revert logging 2023-09-20 13:18:22 +02:00
c.lamboo
d4449c680f Find available port when starting backend plugin
CURA-11067
2023-09-20 11:24:28 +02:00
Remco Burema
1e360e1ea0 Output on error-stream doesn't necessarily mean an error.
done as part of CURA-11064
2023-09-19 17:34:19 +02:00
c.lamboo
63942b72a8 Log backend plugin std out
CURA-11064
2023-09-19 17:07:46 +02:00
Saumya Jain
47b4320512
Merge branch 'main' into CURA-10004_fix_crash_small_rotations 2023-09-18 15:52:12 +02:00
Erwan MATHIEU
9334447972 Do not compute a convex hull for layer data nodes
CURA-10004
2023-09-18 15:16:04 +02:00
Erwan MATHIEU
e4a6b8dd91 Revert "Remove convex hull computation when not required"
This reverts commit ab22611ecfb4f74146afc49f78ee1065373447c9.
2023-09-18 14:57:55 +02:00
Jelle Spijker
45510d04ed
Added ability for backend plugins to determine their usability
Modified BackendPlugin.py and StartSliceJob.py to allow plugins to decide when they should be used. The 'usePlugin'
method was added to enable a plugin to return a boolean indicating if it should be used or not, e.q.: start up and
connect to the services.

Contributes to CURA-11031
2023-09-13 07:22:07 +02:00
Erwan MATHIEU
80a8d863d6 Merge remote-tracking branch 'origin/main' into CURA-10004_fix_crash_small_rotations 2023-09-11 15:56:32 +02:00
Jelle Spijker
570d6ae916
Merge branch 'main' into CURA-10953_introduce_any_color_material 2023-09-11 15:52:13 +02:00
Erwan MATHIEU
ab22611ecf Remove convex hull computation when not required
ConvexHullDecorator is setup at node creation, so I can't see a way that this part of code is called. Moreover, it would add a decorator for a layer plan node, which actually leads to a crash.

CURA-10004
2023-09-11 15:44:07 +02:00
Remco Burema
fbd5569089 Merge remote-tracking branch 'origin/main' into CURA-10951_gh_build_curapackage 2023-09-08 18:39:27 +02:00
Jaime van Kessel
e899b9987c
Merge branch 'PP-245-high-speed-profiles' of github.com:Ultimaker/Cura into CURA-10953_introduce_any_color_material 2023-09-07 15:03:27 +02:00
Jaime van Kessel
fd887a877a
Don't sync invisible materials
CURA-10953
2023-09-07 13:48:36 +02:00
Jaime van Kessel
1a41f2650a
Don't show invisible materials in material selection
CURA-10953
2023-09-07 13:24:40 +02:00
Remco Burema
c716ff8dfe Merge branch 'main' into CURA-9494_nightly 2023-09-07 13:09:49 +02:00
c.lamboo
71dc8e22a6
Allow objects to be placed near border
Issue before was the following: when placing objects within a grid cell there is a margin around the object. This margin comes from both the integer rounding of the cell and the defined min distance between objects. When trying to place object near the buildplate border we marked any cell that is not fully within the buildplate area as an invalid cell to place objects in. This was however too strict; there is the aforementioned margin around the object, and if only this margin would be outside the buildplate it is perfectly fine to place object in that cell.

CURA-7951
2023-09-06 16:53:02 +02:00
Jaime van Kessel
331ff75315
Insert "generic color same brand" logic for qualities
So instead of always falling back to generic brand and generic color,
we first try to fall back to generic color with the same brand for qualities

CURA-10953
2023-09-06 12:55:36 +02:00
c.lamboo
68806f4226 Allow objects to be placed near border
Issue before was the following: when placing objects within a grid cell there is a margin around the object. This margin comes from both the integer rounding of the cell and the defined min distance between objects. When trying to place object near the buildplate border we marked any cell that is not fully within the buildplate area as an invalid cell to place objects in. This was however too strict; there is the aforementioned margin around the object, and if only this margin would be outside the buildplate it is perfectly fine to place object in that cell.

CURA-7951
2023-09-01 11:11:09 +02:00
c.lamboo
d2cd759e51 Merge branch 'main' into CURA-10951_gh_build_curapackage 2023-08-30 20:23:40 +02:00
Remco Burema
fa08848152
Merge pull request #15496 from Ultimaker/CURA-7951_lock_rotation
Add option to arrange in grid
2023-08-30 13:31:42 +02:00
c.lamboo
586739c547 Avoid bool-trap
CURA-7951
2023-08-30 13:06:19 +02:00
c.lamboo
afc1ba78f5 Remove debugging utility function
CURA-7951
2023-08-30 12:52:27 +02:00
c.lamboo
3e39bbdabd Typo
CURA-7951
2023-08-30 12:51:03 +02:00
c.lamboo
38a5754c6f Mark method functions as private
CURA-7951
2023-08-30 12:47:56 +02:00
c.lamboo
b3b5ffbf55 Put try catch around actual arranging
`arrange` is the function that _could_ fail

CURA-7951
2023-08-30 12:45:34 +02:00
c.lamboo
cfc4db00a5 Use descriptive variable name
instead of magic number

CURA-7951
2023-08-30 12:41:53 +02:00
Jelle Spijker
81b2aeaf4e
Merge branch 'main' into CURA-9494_nightly 2023-08-29 22:52:54 +02:00
Fernando Pietchaki
6aeb59eb15 Refactor object reload to handle 3mf files
Refactor object reload to better handling of 3mf files

Make a single file read for all objects from that file, and then
replace the objects in scene to the new ones, matching by name.

This is also required for an Uranium update to handle the automatic
file reload when a file change is detected.

3mf Files can have multiple objects in them. When that is the case,
and the file is updated, all objects from that file where being
replaced by the first object in the file.
2023-08-29 15:06:27 -03:00
Jelle Spijker
87b6ad63a7 Merge remote-tracking branch 'origin/main' into CURA-10951_gh_build_curapackage
# Conflicts:
#	conanfile.py
2023-08-29 16:13:39 +02:00
c.lamboo
6e045e8b37 Put back getAnyExtruderPositionWithOrDefault api function
CURA-10685
2023-08-29 14:11:36 +02:00
Casper Lamboo
f3b2a05f49
Merge pull request #16589 from Ultimaker/CURA-10685_improve_ui_performance
CURA-10685_improve_ui_performance
2023-08-29 10:55:41 +02:00
fieldOfView
eecdceffdb Fix available height when adding modifier mesh in One at a Time printing
Cura lowers the available build volume height when more than 1 model is loaded. This count should include grouped nodes as one (since they will be slice as one and thus not affect the gantry), and should not include modifier meshes or support meshes (since support-meshes are always printed with the first model anyway).

Fixes https://github.com/Ultimaker/Cura/issues/16566
2023-08-28 15:42:04 +02:00
c.lamboo
2ffcfa37e9 Merge branch 'main' into CURA-10475_engineplugin 2023-08-28 10:42:23 +02:00
saumya.jain
ab8b7c3ab5 name changes
CURA-10685
2023-08-25 15:46:30 +02:00
saumya.jain
9129a526ba improve number of iterations
CURA-10685
2023-08-25 11:58:27 +02:00
saumya.jain
11ea4639c9 Merge branch 'CURA-7951_lock_rotation' of https://github.com/Ultimaker/Cura into CURA-7951_lock_rotation 2023-08-24 16:34:55 +02:00
saumya.jain
e8c06ec783 grid arrange adjusted for disallowed area
CURA-7951
2023-08-24 16:34:34 +02:00
c.lamboo
34aa631531 Re-add arrange to CuraApplication
CURA-7951
2023-08-24 16:13:39 +02:00
c.lamboo
ac78de1227 Updated comments
CURA-7951
2023-08-24 11:55:25 +02:00
Saumya Jain
1e7c975929
Merge branch 'CURA-7951_lock_rotation' into optimal_offset 2023-08-24 11:54:19 +02:00
saumya.jain
1591a2a0c3 ctrl+z for grid
CURA-7951
2023-08-24 11:48:43 +02:00
c.lamboo
719b11655c Fix ctrl+z issues
CURA-7951`
2023-08-24 11:24:21 +02:00
Erwan MATHIEU
09d4f083e0 Include adhesion for 1-at-a-time exclusion shadow
CURA-10307
2023-08-24 11:15:34 +02:00
c.lamboo
f67a6970dd Find optimal offset for grid arrange
CURA-7951
2023-08-24 08:33:59 +02:00
c.lamboo
668038c59f Implement factory for Arrange
CURA-7951
2023-08-23 17:58:00 +02:00
saumya.jain
118f49a052 review comments fixed
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>

CURA-7951
2023-08-23 15:39:23 +02:00