15726 Commits

Author SHA1 Message Date
Martin Šach
bb8cca8999 Fix arrange after cut (SPE-2583, #13637)
The cut arrange updated the Plater without the new objects
being on any of the beds. This led to mutliple beds reducing
the bed count and activating a previous bed. This in turn
ment that get_active_bed was temporarily wrong and the subsequent
arrange placed items on a wrong bed.

Improve this by explictly setting which bed is going to be
used for the arrange and than restoring the originally
active bed.

If there is just one instance, simply choose the bed the
instance is on. If there are more instances, use the active
bed for arrange.
2024-12-06 10:59:28 +01:00
enricoturri1966
75274707c9 SPE-2595 - Fixed update of shells in preview 2024-12-06 10:56:13 +01:00
enricoturri1966
78b884ef8b SPE-2596 - Fixed glitch (jumping) of camera after panning 2024-12-05 17:08:54 +01:00
enricoturri1966
015b9f5536 SPE-2596 - Camera rotation around screen center, keeping the rotation pivot on the plane z = 0 2024-12-05 17:08:54 +01:00
enricoturri1966
63ce55166d SPE-2572 - Fixed panning of camera, in both 3D view and preview, when using multiple beds (#13621) 2024-12-05 17:08:54 +01:00
enricoturri1966
b7135049d5 SPE-2506 - Improved scene panning in preview after changing selected bed 2024-12-05 17:08:54 +01:00
enricoturri1966
a62f846e0b SPE-2574 - Fixed emission of lines M73 C/D to gcode 2024-12-02 12:18:14 +01:00
Martin Šach
1675e08268 SPE-2580: Disable wipe tower in arrange if we know there is none. 2024-12-02 12:18:00 +01:00
David Kocik
c8cac7f678 SPE-2575:: Do not allow busy cursor logic in webview on linux
Allow changes of cursor only when panel is shown.
2024-12-02 12:13:59 +01:00
enricoturri1966
47bba48b34 SPE-2577 - Fixed processing of gcodes when using absolute values for E (#13623) 2024-12-02 12:12:01 +01:00
Martin Šach
9aed420c33 SPE-2578: Fix avoid crossing perimeters (#13445, #13478, #12432, #13669):
- Turn off external motion planner when the instance is the same for layer
change.
- Properly set the instance shift for travel_to_first_position. Affects
  simple rectangular layer change.
2024-12-02 12:08:55 +01:00
Lukas Matena
c7d9e55808 SPE-2587: Hotfix of slow loading of binary gcodes in gcodeviewer:
caused by calling render way too often directly from the update function
the fix is nothing nice, but it will have to do for now
2024-12-02 12:08:36 +01:00
Martin Šach
2229fc1954 Fix iterator invalidation 2024-11-27 14:57:14 +01:00
David Kocik
c70cb1ac15 Fix of asserts 2024-11-25 12:19:12 +01:00
randomtechguy
87646cad14 Update CMakeLists.txt to fix linux compile error (PR#13609 by @jmickelin) 2024-11-22 16:33:39 +01:00
Jonne Mickelin
20a02b585a Link boost_headeronly in slic3r and libslic3r (PR#13609 by @jmickelin)
This solves the linker error about missing `boost::log` symbols.

Fixes #13608.
2024-11-22 16:33:39 +01:00
Jonne Mickelin
0ea9a1c729 Replace FindDbus.cmake with the upstream module (PR#13609 by @jmickelin)
This solves the build error with missing headers.

Partially fixes #13608.
2024-11-22 16:33:39 +01:00
David Kocik
7fa9e1c517 Reset our css styles after reloading Printables.
Fixes non-working notifications.
2024-11-20 17:14:39 +01:00
Lukas Matena
0c827ca368 Bumped up version to 2.9.0-alpha0 2024-11-20 16:05:53 +01:00
Lukas Matena
1a608da2ae Multiple beds: Fixed behaviour with empty beds and non-printable instances 2024-11-20 16:04:16 +01:00
Martin Šach
4f7366045e Arrange: Fix local arrange in SLA mode 2024-11-20 16:04:16 +01:00
Martin Šach
e588d80e23 Arrange: Fix fill bed with instances 2024-11-20 16:04:16 +01:00
Martin Šach
0aaca75688 Arrange: Do not take instances outside of bed into consideration, new icons 2024-11-20 16:04:16 +01:00
Lukas Matena
ec87263ce4 Multiple beds - updates, partially outside = on the bed 2024-11-20 16:04:15 +01:00
Lukas Matena
08eb318780 Multiple beds in SLA 2024-11-20 16:04:15 +01:00
YuSanka
324763a90e Nicer bed selector dialog 2024-11-20 16:04:15 +01:00
Lukas Matena
e1be0f041c Autoslice (part 1) 2024-11-20 16:04:15 +01:00
enricoturri1966
0bd37e6b08 SPE-2506 - Fixed rendering of sequential print clearance contours when using multiple beds 2024-11-20 16:04:15 +01:00
enricoturri1966
bbdd2e9d07 SPE-2506 - Fixed camera jumping when panning after rotating scene containing multiple beds 2024-11-20 16:04:15 +01:00
Lukas Matena
311434382d Do not account for bed model for spacing calculation 2024-11-20 16:04:15 +01:00
Martin Šach
45eda1a00f Arrange: Avoid dependency of arrange on multiple beds
Drop the BedsGrid::Gap type alias as it brings more problems than it
solves.
2024-11-20 16:04:15 +01:00
Martin Šach
5199d8fb48 Arrange: Move arrange into separate cmake targets
- Create a slicer specific arrange target
- Create a general arrange target from the arrange core
2024-11-20 16:04:15 +01:00
Martin Šach
ffc369e187 Arrange: Remove old arrange 2024-11-20 16:04:15 +01:00
Martin Šach
3e33631abf Arrange: Use arrange for multiple beds.
- Support multiple wipe towers
- Arrange to grid directly within the arrange algorithm
- Suporrt arranging just the current bed
- Support fill bed with instances
- Add arrange selected on current bed
- Add arrange current bed keyboard shortcuts
- Fix cut not arranging properly (set instance bed after cut to the active bed, use arrange current bed selection only after cut)
- Fix shift-D on arrange
- Add window with options to the bed arrange button
2024-11-20 16:04:15 +01:00
Lukas Matena
5b59785456 wipe towers volumes 2024-11-20 16:04:15 +01:00
Lukas Matena
fae06e0773 Vectorization of the wipe tower 2024-11-20 16:04:15 +01:00
Lukas Matena
da13a0a80e Vectorization of customgcode 2024-11-20 16:04:15 +01:00
enricoturri1966
90136d3ad3 Camera + shading
Zoom to bed command set to zoom to active bed

Added camera rotation pivot which is updated whenever the active bed changes

SPE-2506 - Follow up of a2873759aba1eb13a31591d9e852be0f1e21786b - Fixed camera position after zoom to bed
2024-11-20 16:04:15 +01:00
Lukas Matena
360f7a84b4 Polishing:
- virtual bed shows even when dragging which was already outside
- when loading old-arranged project with more than max number of beds, a virtual bed would still be offered
- loading a project file with multiple beds only showed 2 beds initially
- nonprintable objects are not considered into the bed creation logic
- drag and dropping an object does not change active bed
- shells in preview are now shown correctly when switching between beds
- spacing in x takes into account model size (except during the initial rearrange)
- update volumes outside state after project loading
- highlight of selected bed for default beds
2024-11-20 16:04:05 +01:00
Lukas Matena
cc73ff8f4f Multiple beds (part 7):
This is where it really gets nasty:

- Switch background_process.m_temp_output_path is now updated when beds are switched, so each Print writes to a different file.

- When switching beds in Preview, there is a cache in GCodeViewer which would mistakenly not load the other preview (happens in case when switching to a bed which is not sliced and back). Bypass this cache when beds are being switched.

- Added a CallAfter logic into GLCanvas3D::select_bed (the central function where beds are switched). It now does the following:
  1. Stops the background process
  2. Schedules a callafter which then
  3. wxYields the event queue (so all events generated as a result of (1) are consumed before active bed is switched.
  4. switches active bed
  5. fires couple of update functions and events, schedules background process

- When BSProcess is switched to the new bed, it now calls on_slicing_update (in sync). This is to regenerate all slicing error/warning notifications. The on_slicing_update function was updated to be able to process all print(object)steps and objects.

- Sliced info in sidebar did not properly show when switching beds in 3D scene. Added explicit refresh into update_background_process.
2024-11-20 13:36:13 +01:00
Lukas Matena
87a1fe8c65 Multiple beds (part 6):
- arrange
- bed spacing in multiples of bed size
- newly loaded positions are loaded on active bed
TODO: Fix results after convert, split and cut
2024-11-20 13:36:13 +01:00
Lukas Matena
c24e9fdfed Multiple beds (part 5):
- nicer active / virtual bed visualization
- select bed by left mouse click
- bed selector only shows in preview
2024-11-20 13:36:13 +01:00
Lukas Matena
9035caa337 Multiple beds (part 4): Thumbnails (buttons, G-codes) 2024-11-20 13:36:13 +01:00
Lukas Matena
e88c625567 Multiple beds (part 3):
- reload preview when beds are switched
- only show one bed in preview
- move the preview so it ends up in the same place as in 3D scene
- move the camera when switching beds in Preview
2024-11-20 13:36:13 +01:00
Lukas Matena
7da3ce6961 Multiple beds (part 2):
- Vectorizing Print, SLAPrint and GCodeProcessorResult
- Connect multiple beds to background slicing process
- TODO: A lot of code (notifications, etc.) commented-out.
2024-11-20 13:36:12 +01:00
Lukas Matena
accc4ce266 Multiple beds (part 1):
- create new bed when a volume is dragged into it
- limit maximum number of beds
- keep track of which ModelInstances are on which bed
- show list of beds and allow selecting an active one
- move objects from active bed to the first bed when passing Model to Print::apply (and back)
2024-11-20 13:36:12 +01:00
David Kocik
9302cb10ae Add CORE to supported printers 2024-11-20 12:51:38 +01:00
David Kocik
ad621750ea delete old code 2024-11-20 10:23:23 +01:00
David Kocik
0503733694 Fix of sending refreshed token to Connect
Improved timeout logic
2024-11-20 10:09:12 +01:00
David Kocik
5ba8f21c77 SPE-2570: Refresh access token if Printables fire accessTokenExpired event
Add fancy loading overlay during refresh period

missing include
2024-11-20 10:08:49 +01:00