# Description
Fixes a macOS crash shortly after startup, which happened when the web
Device page of a printer with an API key finished loading while a
context menu was open. It also makes that page show the printer's web UI
on the first visit; until now it could stay blank until another printer
was selected and then this one again.
Only the web Device page is affected.
Related: #14675, the same startup crash, which #14747 fixed when no menu
is open; and #16752, whose fix left the page blank after startup.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
<!--
> Please describe the tests that you have conducted to verify the
changes made in this PR.
-->
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
# Description
On Linux under Wayland, clicking the filament, printer or process
dropdown while its tooltip was showing did nothing, so it often took
several clicks to open the list, and the terminal logged `Tried to map a
popup with a non-top most parent`. Dropdowns and Orca's other popups now
open on the first click even when a tooltip is up. The orca-wxwidgets
skill gains the matching rule for popups on Wayland.
Fixes#16595
Only Linux under Wayland is affected; X11, Windows and macOS behave as
before.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
Checked by hand on KDE Plasma (Wayland, GTK 3.24.52) against a build
without the fix. With the combo's tooltip showing, a click used to open
nothing; it now opens the filament, process and printer lists on the
first click with no GDK warning. Vendor sub-lists, picking an item,
clicking outside and clicking the combo again still work, and tooltips
come back after the list closes.
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
Last resort for code that never returns while the app closes, such as
plugin code, vendor libraries or a lost network call. Once closing can
no longer be vetoed, a watchdog thread waits 30 seconds, logs that the
app did not finish closing and ends the process with std::_Exit. The app
config is saved on idle and again in MainFrame::shutdown, so little is
lost.
# Description
<!--
> Please provide a summary of the changes made in this PR. Include
details such as:
> * What issue does this PR address or fix?
> * What new features or enhancements does this PR introduce?
> * Are there any breaking changes or dependencies that need to be
considered?
-->
Fixes#16771. Opening a project saved by 2.5.0-alpha in a nightly shows
"The 3MF file version 2.5.0-alpha is newer than OrcaSlicer's version
2.5.0-dev, found the following unrecognized keys:", followed by an empty
list.
Three things cause this:
- `semver.c` ranks `dev` below every other prerelease. Nightlies stay on
`x.y.z-dev` after the alpha and beta are tagged on the release branch,
so every alpha or beta project looked newer than the nightly opening it.
- `silent_mode` was retired: `handle_legacy` drops it on load, and
nothing can set it. It was still defined, though, so it was written into
every project. Every project then reported it as an unrecognized key on
load, and every project from a newer version took the "unrecognized
keys" branch of the warning. For the project in the issue it is the only
key reported.
- The warning never printed the keys it found, so the list was blank.
## Changes
- Rank `dev` above the other prereleases of the same version and below
the release: alpha < beta < rc < dev < release. This also changes two
other places that compare against the app's version:
- A project saved by a `x.y.z-dev` nightly now counts as newer when
opened in that version's alpha or beta.
- The update check, with prereleases enabled, no longer offers that
version's alpha or beta to nightly users. It still offers the release.
- Remove the `silent_mode` option, so projects no longer save it, along
with the code that only read it: the Normal/Silent columns on the
printer's Motion ability page, the Normal/Silent label in the
unsaved-changes dialog, and the switch that enabled the stealth time
estimator. Since the value was always false, none of these ran. The key
stays in the obsolete set, so older projects that contain it still load.
- List the unrecognized keys in the newer-version warning. The UI
strings are unchanged, so existing translations stay valid.
Projects saved before this change still carry `silent_mode`, so the
warning lists it when one of them is newer than the running version.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
Before:
<img width="860" height="200" alt="before"
src="https://github.com/user-attachments/assets/5d067ae1-5cfb-40b4-8973-3ac10cf2aeb9"
/>
After:
<img width="860" height="200" alt="after"
src="https://github.com/user-attachments/assets/2ef2401e-e869-4ae8-84f6-8730494c13c0"
/>
## Tests
<!--
> Please describe the tests that you have conducted to verify the
changes made in this PR.
-->
- New `[Semver]` cases: dev ranks above alpha, beta and rc and below the
release of its version; two dev builds compare equal. They fail without
the `semver.c` change.
- New `[Config]` case: a full config has no `silent_mode`, and loading
one that has it drops it and reports it as unrecognized.
- On Linux, loaded the project from the issue in a `2.5.0-dev` build.
Before: the warning with an empty list. After: no warning. The same
project relabelled as 2.5.0 and given an unknown key shows the warning
listing that key and `silent_mode`.
- Re-saved the project from the CLI: `silent_mode` is no longer in
`project_settings.config`.
- Sliced the project before and after: identical moves and time
estimates; only the settings comments differ.
- `tests/libslic3r` and `tests/fff_print` pass on Linux. The STEP case
"A cone with a slightly tilted seam imports as a closed mesh" fails
locally on main too. The profile tool tests pass.
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
# Description
Filament preset compilation was deleting other JSON files that the
application reads at runtime. This causes the filament color selector to
not show vendor specific colors and always show an arbitrary color
picker instead of presets.
Also look up filament color codes by Bambu id inside
FilamentColorCodeQuery, so the Bambu color picker works when a non-Bambu
printer agent (or none) is live.
Fixes#16700
# Screenshots/Recordings/Graphs
Before:
<img width="427" height="510" alt="image"
src="https://github.com/user-attachments/assets/635fff2d-56fe-4c3e-bcb9-d7a22b1abbc6"
/>
After:
<img width="759" height="452" alt="image"
src="https://github.com/user-attachments/assets/f6a7bb02-d5ab-4d5d-a9c9-c55f61f6a167"
/>
## Tests
Tested on a local build with the fixes from this PR.
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
WebView2 sets its rasterization scale to monitor DPI multiplied by the
user's Windows text size, and tracks that value itself. wx keeps the
webview bounds in raw pixels, so the page is drawn at the larger scale
inside an unchanged box. Dialogs hosting web content (Color Picker,
Plugins, Speed Dial, WebPanel pages) look zoomed in at 200% text size,
while the native wx chrome does not.
Turn off monitor-change detection on the controller and set the
rasterization scale to the webview's DPI scale on every bounds update,
so the page follows the monitor like the rest of the UI. The patch is
applied only on MSVC, the only build that uses the Edge backend.
# Description
Brings back the filament Exhaust fan settings on the Bambu Lab X1, X1
Carbon, P1S, P2S, H2D, H2D Pro, H2S and X2D, so the exhaust fan again
runs during and after a print as configured. This fixes a regression
from 2.4.2 that first appeared in 2.5.0-alpha. Bambu ABS on the P2S with
a 0.6 nozzle keeps the exhaust fan off, as it did in 2.4.2.
Closes#14013
Profile data only. Slicing output changes only on these printers, with
filaments that turn on air filtration: those prints get back the exhaust
fan commands 2.4.2 emitted.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
Each of the eight printers was sliced before and after the change. The
only G-code differences are the exhaust fan commands, and they match
what BambuStudio emits for the same printer and filament once air
filtration is turned on. `check_profile.sh` passes, and the GUI shows
the Exhaust fan group for the X2D and H2D, including in projects saved
with 2.5.0-alpha.
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
Nightlies stay on x.y.z-dev after the alpha and beta are tagged, so
ranking dev below every prerelease made each alpha or beta project look
newer than the nightly that should open it. Dev now ranks above the other
prereleases of its version and below the release.
silent_mode has been dropped on load since it was retired, and nothing
can set it, yet it was still defined and written into every project.
Remove the option and the code that only read it. The key stays in the
obsolete set so older projects still load.
GCodeProcessor::s_IsBBLPrinter is reset by export before the test asks for the tag names, so reserved_tag() returned the main G-code's ;HEIGHT: / ;WIDTH: spellings and the scan never saw the tower's lines. Use the literals the writer emits, and generate de_DE in the Linux test job so the case stops skipping there.
The ;HEIGHT: and ;WIDTH: tags that WipeTowerWriter writes for GCodeProcessor
were formatted with std::to_string, which follows the C numeric locale. On a
thread that keeps the user's locale, a comma-decimal locale wrote tags such as
";HEIGHT:0,300000". GCodeProcessor parses these values with the C locale, so it
logs an error and ignores the tag, and the width and height it assumes for the
tower fall back to its own.
Format them with float_to_string_decimal_point like the move coordinates beside
them, keeping six decimals so the output in the C locale is unchanged. The same
tags in WipeTower2 go through a stream, which formats in the global C++ locale
and was never affected.
Adds a test that slices with a comma numeric locale and checks every ;HEIGHT:
and ;WIDTH: line, including the two the writer's constructor emits before the
tower's start tag.
Related to #16777.
wx leaves the main loop only when no other top-level window exists,
hidden ones included. The unsupported-control and chamber temperature
warnings were parentless frames that are hidden, never destroyed, and
the printer parts dialog was heap-allocated without being destroyed, so
after any of them had been shown the process stayed alive once the main
window closed. Parent the warnings to the main frame and put the parts
dialog on the stack.
Closing the app, starting a new project or opening another one while a
slice was still generating perimeters or infill deleted the plate prints
under the running background thread, which crashed with a segfault or a
corrupted heap. Deleting a Print only cancels the thread once a
print-level step has started, so stop the background process before
reinit() deletes the prints.
# Description
With Bed temperature type set to By Highest Temp, the bed now stays at
the highest temperature of the filaments printed on the first layer for
the whole print. A filament that only starts higher up, such as a PETG
support interface on a PLA part, no longer heats the bed from layer 2 on
and softens the part standing on it. This matches BambuStudio's handling
of the same option.
Fixes#16644
Only By Highest Temp prints that use a filament above the first layer
change; By First filament and the first layer itself are unaffected.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
Added a regression test that slices a supported overhang with the
support interface on a second filament with a higher bed temperature; it
fails before the change and passes after. Slicing the project attached
to the issue now keeps the bed at 45 °C after the first layer instead of
switching to 70 °C.
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
change_cs_by_selection() read obejct_idx and volume_idx without
initializing them when the selection has no single volume. The stale
values were compared with the last seen key, so a later scene refresh,
such as the one after an align, could reset Object back to World.
Initialize both to -1, and reset the last seen key to -2 on open so the
first update always applies the default. Apply the same fix to the Scale
gizmo, which has the same read.
Refs #16676
With the Object coordinate system selected in the Move panel, align and
distribute ignored it and always worked on world axes.
Measure each item in the frame of the selection's instance rotation, the
same reference the Move gizmo's Object mode uses, and convert displacements
back to world before applying them. The align preview is drawn in that
frame too.
Plate alignment stays on world axes, since the bed has no orientation.
Refs #16676
The align mode was forced to "Plate" when the selection could not align
within itself, and was never restored when the selection grew. The
Distribute row is only shown in "Selection" mode, so it stayed hidden
after selecting an assembly while the tool was open.
Track whether the selection can align within itself and reset the mode
when that changes.
Refs #16676
#15985 added a file-local IslandLocator class to MultiMaterialSegmentation.cpp, and #16291 added a different Slic3r::IslandLocator in ConnectedBodies.hpp. Their implicit destructors have the same symbol, so the linker keeps only one of them. When it keeps the ConnectedBodies one, merge_segmented_layers destroys its locator with the wrong destructor and frees memory it never allocated. On builds where that destructor is not inlined, slicing any painted object crashes.
Put the MultiMaterialSegmentation class in an unnamed namespace so it is private to its file.
The 3D view decided whether to run its shortcuts from ImGui's "wants the
keyboard" flag, which is updated a frame late. The first key typed after
clicking into a field could still reach the canvas.
The canvas now leaves every key to ImGui while an ImGui text field is
active, while a popup (dropdown, menu or modal) is open, or while a
slider or button is held with the mouse. A focused sidebar text field
works the same way. Global shortcuts still run unless they edit text.
Every key still goes to ImGui.
- ImGuiWrapper::claim_key_event() decides on the key-down. The key's
repeats, char event and release follow that decision, so a key never
both runs a shortcut and types.
- Esc closes an open dropdown or menu before the gizmo.
- Esc and Tab during a slider drag no longer close the gizmo or switch
views.
- text_input_active() reads ImGui's text input request, so a slider
that once had a value typed into it no longer counts as a text field
when dragged.
- A modifier whose key-up went to a dialog no longer stays stuck. The
canvas releases held modifiers when it loses the focus, and ImGui
takes its modifiers from each mouse event.
- The macOS Edit menu's key equivalents follow the same rule.
# Description
This PR adds opt-in, height-aware exclusion volumes to OrcaSlicer,
including multi-nozzle handling, object and generated-geometry
validation, final G-code collision checking, and travel rerouting.
It grew from the original object-placement prototype into a
collision-aware slicing pipeline with documented limitations. The
central compatibility decision is that Orca's existing
`bed_exclude_area` keeps its historical meaning, while the new
`bed_exclude_volumes` setting explicitly enables the stronger
collision-aware behavior.
<img width="935" height="707" alt="Travel paths routed around exclusion
volumes"
src="https://github.com/user-attachments/assets/22925e5c-a3b1-4c26-be1a-8a89d9970cb5"
/>
Related issues: #5922, #10579, #10638 and #12774.
## Why this is useful
The existing 2D exclusion area prevents object placement in areas such
as the filament-cutter corner on Bambu printers. It cannot describe low
bed clips, raised tool docks, camera arms, flying-gantry hardware, or
other obstacles that occupy only part of the printer's Z range.
Treating every existing area as a physical motion obstacle would also be
unsafe for compatibility: some printers deliberately move into their
excluded material area. This PR therefore separates the two concepts
rather than changing the meaning of existing profiles.
| Setting | Purpose | Existing motion affected? |
| --- | --- | --- |
| `bed_exclude_area` | Existing bed-fixed material/placement keep-out |
No G-code checking or travel rerouting |
| `bed_exclude_volumes` | Shared 3D collision volumes |
Object/generated-material checks, G-code validation and travel rerouting
|
| `extruder_bed_exclude_volumes` | Per-extruder 3D collision volumes |
Same collision behavior, resolved for the active physical nozzle |
Bed areas and collision volumes are additive. A printer can retain an
existing cutter/material keep-out while adding separate physical
collision volumes. Belt printers retain the existing projection of bed
areas onto the tilted belt surface; collision volumes remain in model
coordinates.
## Configuration and syntax
`bed_exclude_volumes` accepts one or more polygonal prisms:
```text
XxY,XxY,...
```
defines a full-height collision volume.
```text
REGION|REGION|REGION
```
defines multiple independent volumes.
```text
ZMIN..ZMAX;XxY,XxY,...
```
defines a volume active only across that Z range. Either Z bound may be
omitted:
```text
..10;20x20,40x20,40x40,20x40
30..;20x20,40x20,40x40,20x40
```
For example:
```text
20x0,45x0,45x18,20x18|8..22;115x20,145x20,145x48,115x48
```
defines one full-height volume and one volume active from Z=8 mm to Z=22
mm. Z ranges are validated and clamped against the configured printable
height, and decimal parsing is locale-independent.
The CLI exposes the same distinction:
```text
--bed-exclude-area
--bed-exclude-volumes
```
Existing scripts using `--bed-exclude-area` retain the original polygon
format and behavior.
## Backward compatibility and migration
- Existing profiles and projects using only `bed_exclude_area` keep its
material/placement keep-out meaning; they do not implicitly enable
collision-volume checking or travel rerouting.
- Stock printer motion is not checked or rerouted against bed areas.
This is important for machines that deliberately enter an excluded
material area during cutting or loading.
- The new syntax is stored under separate config keys, so an older Orca
build does not try to deserialize a volumetric string as the existing
point-list option.
- In **Printer settings → Basic information → Printable space**,
**Excluded bed area** remains a normal editable field with Orca's
standard reset controls. **Toolhead collision volumes** is a separate
field directly below it. There is no Convert/Copy button and neither
setting clears the other.
- A bed-area polygon can be manually copied into the collision-volume
field to describe a full-height physical obstacle. Pasting volume syntax
into the bed-area field instead prompts for confirmation before adding
it to the appropriate volume definitions. The saved bed area, existing
volumes and selected nozzle mode are preserved; cancelling leaves them
unchanged.
- If a user does not configure the new volume keys, the new G-code
checker, rerouter, support trimming and nozzle-specific brim behavior
remain inactive.
This gives existing profiles a stable compatibility boundary while
allowing users and maintainers to migrate deliberately to full collision
checking over time.
## Multi-nozzle behavior
For multi-nozzle printers, the collision-volume mode selects one of
three behaviours. In individual mode, each extruder's definition is
edited on its own Extruder settings page. These modes apply only to
collision volumes; the excluded bed area stays shared and bed-fixed.
Collision volumes support three modes:
<img width="549" height="441" alt="Exclusion volume behavior selector"
src="https://github.com/user-attachments/assets/6ca8c2e2-d00e-4b32-9b12-bfbff0928966"
/>
### Shared
Every physical nozzle uses the same collision-volume definition.
<img width="2353" height="1633" alt="Shared exclusion volumes"
src="https://github.com/user-attachments/assets/96fe938b-07b4-4cd9-b587-e31f2ebba5f8"
/>
### Toolhead-relative (nozzle offsets)
The shared definition is treated as relative to the toolhead. Orca
derives the other nozzles' collision regions using their configured XY
offset from the reference nozzle. This is useful where the same physical
carriage must avoid an obstacle but its position changes when a
different offset nozzle prints at the same model coordinate.
<img width="1084" height="803" alt="Toolhead-relative exclusion volumes"
src="https://github.com/user-attachments/assets/e0790ee4-68b5-444f-90ac-22a5eba05eec"
/>
### Individual per extruder
Each physical extruder/nozzle has its own independent volume definition.
This supports machines whose valid region differs by tool and cannot be
derived from a simple nozzle offset.
<img width="1123" height="761" alt="Independent exclusion volumes for
three extruders"
src="https://github.com/user-attachments/assets/c6404ceb-9958-4df8-93ed-5ff2ac7dc658"
/>
Object validation resolves logical filament assignments to the physical
nozzle or nozzles that may print the object, including automatic Bambu
mapping. If an object may use several nozzles through painting,
feature-level assignments, modifiers, support or interface material, the
complete object is conservatively checked against every relevant
nozzle's volumes.
## Object validation and 3D preview
Object collision detection uses a cheap XY/Z broad phase followed by an
exact mesh-versus-prism test. The exact test:
- Avoids rejecting an object whose XY shadow overlaps a raised volume
while its real mesh remains clear.
- Detects normal surface crossings.
- Detects a volume completely enclosed inside a solid model.
- Respects object-instance and model-volume transforms.
- Separates the collision decision from optional preview-mesh
generation.
When a collision is found, Orca reports the relevant extruder where
possible and renders the intersecting model surface in red. The bed
preview shows a neutral grey footprint, a thin nozzle-colored ownership
border where appropriate, and a translucent 3D prism when a nearby
object makes the volume relevant. Raised volumes keep their ownership
outline on the bed rather than floating at their starting Z.
<img width="578" height="534" alt="Red model and exclusion-volume
intersection preview"
src="https://github.com/user-attachments/assets/d409f574-1790-48e5-b4a3-703273439954"
/>
Single-nozzle/shared geometry remains visually neutral; nozzle colors
are used when they convey distinct tool ownership.
The default automatic preview limits the translucent 3D geometry to
nearby object height to avoid obscuring the workspace. **View → Show all
collision volumes** displays the complete configured Z ranges, including
on an empty bed. Its default shortcut is **Ctrl+Shift+V**
(**Command+Shift+V** on macOS), and it can be changed in the shortcut
settings. Orca remembers this application-level display preference
independently of printer presets; it does not change collision checks or
slicing.
## Arrange and Fill Bed
Arrange and Fill Bed receive Z-aware, nozzle-aware obstacles, so an
object may occupy a footprint belonging only to another nozzle or pass
below a raised volume when its height permits it.
- Existing objects remain obstacles when Fill Bed creates new copies.
- Convex volume footprints are passed through accurately.
- Orca's current libnest2d path supports convex NFP obstacles only, so
non-convex volumes use a documented conservative bounding box until
convex decomposition is implemented.
- Orca's existing final alignment and normal unplaced-item behavior are
retained.
<img width="1097" height="846" alt="Fill Bed with multiple tools and
exclusion volumes"
src="https://github.com/user-attachments/assets/8c0ee5cf-624b-42a6-b57a-13c73400ac5c"
/>
## Brim and support generation
When collision volumes are enabled, object and support brims are clipped
against the relevant first-layer volume footprints before their final
extrusion paths are generated. Brim ownership is retained so touching
object and support brims cannot be merged and silently reassigned to a
nozzle whose volume they intersect. Established bed-edge and bed-area
brim clipping remains unchanged when collision volumes are not
configured.
<img width="1139" height="770" alt="Object and support brims clipped
around nozzle-specific volumes"
src="https://github.com/user-attachments/assets/2913ff31-53e4-4e43-8b27-1afba7e3bafb"
/>
Normal support and raft polygon categories are trimmed against the
relevant volumes over each support layer's actual vertical slab.
Support-material resolution accounts for explicit support/interface
tools, “current filament” behavior, alternating material layers,
automatic physical-nozzle mapping, support brims, and shared support
geometry.
TreeSupport3D receives active exclusion geometry during branch planning
so its existing avoidance machinery can steer branches around obstacles
rather than merely cutting finished paths.
## Final G-code collision validation
The final emitted G-code is checked as a safety backstop after slicing.
The checker tracks:
- The active physical nozzle and its XY offset.
- Absolute and relative XY/Z motion.
- Travel, extrusion and other parsed motion types.
- Tool selection and physical/nozzle mapping.
- Explicit motion in start, filament-change and tool-change G-code.
- Coordinate resets and common `G28` forms, including bare, spaced,
compact and parameterized axis selections.
Material keep-outs from `bed_exclude_area` are deliberately ignored by
the motion checker. Only explicit collision volumes constrain motion.
If Z is genuinely unknown, the check is conservative across all relevant
heights and the warning identifies that fact and includes the relevant
G-code line. The artificial first segment that the preview draws from
`(0,0)` is not treated as a real machine move.
## Travel rerouting
Generated travel moves are rerouted around active collision volumes when
a valid route exists.
Routing is:
- Aware of the travel's actual Z slab and planned lift/Z-hop.
- Resolved for the active physical nozzle.
- Constrained so any detour vertices added by Orca remain inside the
printable bed.
- Able to accept firmware-established start/end points on or beyond the
nominal bed edge.
- Revalidated before the replacement path is emitted.
The implementation covers ordinary generated travels, the first
generated move after start G-code, and moves following physical or
same-nozzle filament changes. Explicit movement commands in custom
start/tool-change G-code update the tracked position so the next
generated travel begins from the correct point without defeating Orca's
post-toolchange Z restoration.
Obstacle geometry is cached by extruder and active Z-region set, with
bounding-box rejection before expensive polygon work. Clear travels
therefore avoid repeatedly unioning and offsetting the same obstacles.
If no safe route can be found, Orca leaves the original move for the
final checker to report rather than emitting an assumed-safe detour.
Extrusion paths are validated but never rerouted.
<img width="1286" height="706" alt="Travel rerouting from start G-code
across multiple Z-aware volumes"
src="https://github.com/user-attachments/assets/a68cd98f-5576-4f78-af43-697e9f687a9b"
/>
And here is an example of independent nozzle travel rerouting:
<img width="2532" height="876" alt="image"
src="https://github.com/user-attachments/assets/28b0c26e-59d6-42b9-a64f-4c2205c4ea3f"
/>
## Testing and review status
Targeted Catch2 coverage now includes:
- Bed-area/volume parsing, validation, confirmed paste handling,
additive behavior and CLI options.
- Belt-surface projection of bed areas through both static and dynamic
region resolution, including the reported cube positions, with collision
volumes left unprojected.
- Shared, toolhead-relative and individual per-extruder resolution.
- Physical-nozzle and filament mapping.
- Exact object intersection, including fully enclosed prisms and
transformed instances.
- 3MF persistence.
- Arrange behavior for convex and non-convex obstacles.
- Brim bed-boundary and volume clipping regressions.
- Support and interface-material masks across support polygon
categories.
- G-code motion classification, coordinate tracking, homing forms and
tool selection.
- Safe travel rerouting, Z-aware activation, nozzle selection, off-bed
firmware endpoints and failure cases.
The reviewed `929beaee15` revision passed the CI checks, and review
testing confirmed that the unit tests and earlier arrange, tool-change Z
restoration, support, brim and brim-ownership regressions still pass.
Stock-output comparisons covered 12 printers × 3 jobs plus 17 project
files and produced G-code identical to `main` when the new feature was
not configured.
The belt projection correction and its regression coverage are included
in the latest update. Please use the checks below for the current head's
build and test status; earlier successful runs do not substitute for
validation of a new revision.
Review also compared CLI output against `main` across stock printers and
multi-filament projects. The compatibility regressions found during that
review—including stock Bambu cutter motion, preset dirty state,
unintended bed-area brim/support changes, tool-change Z restoration,
stale post-change origins, arrange rejection, router cost, locale
parsing and bed-edge brim clipping—have been addressed.
## Known limitations and follow-up work
The implementation deliberately favors conservative safety. A false
positive or some unused build volume is preferable to emitting a
movement that may collide with the machine. Collision warnings are not
an automatic repair or a guarantee of safe output.
- Skirts and draft shields are not regenerated or detoured around
collision volumes. The final checker can report an intersection, but
producing a valid closed loop around internal obstacles while remaining
inside the bed needs a dedicated solution.
- Extrusion paths are checked but not rerouted.
- Spiral Z-hop's circular XY sweep is generated after the primary travel
route has been planned. That sweep is not currently rerouted; the final
G-code checker can report a collision, but does not repair it.
- Orca cannot infer movement hidden inside an opaque firmware macro. A
deterministic macro endpoint should be exposed with explicit `G90`/`G91`
and `G0`/`G1` motion in Orca's custom G-code so the following travel can
be routed from a known position. Movements inside custom G-code are
checked, but only the generated travel after them is rerouted.
- Negative model parts are not applied to the raw object-intersection
mesh, so geometry removed only by a negative part can produce a
conservative false positive.
- Multi-nozzle object validation applies every relevant nozzle's volume
to the complete object rather than only its visibly painted surface.
- Support shared by several instances uses a conservative union of
relevant plate-space exclusions.
- Support avoidance trims or steers generated geometry but does not
perform structural support re-planning. Support above a raised volume
may resume over a void; native tree-support paths not using
TreeSupport3D are not yet volume-aware.
- Raised-only collision volumes are not yet fully represented in
prime/wipe-tower placement validation; the final G-code checker remains
the safety backstop.
- Existing cross-object support-to-support overlap behavior is outside
this PR.
- “No tool selected” carriage-only exclusions are not represented by
Orca's current backend and remain a possible future extension.
## Origin
This work began with the [Muon3D
M1](https://www.youtube.com/watch?v=jBatFQpTM6g), whose notched glass
bed leaves usable print volume above a low obstruction. Upstreaming the
capability lets other printers describe low clips, raised docks,
toolchanger hardware and per-tool clearance limits without requiring a
permanent fork.
Thank you to everyone who tested the implementation, reviewed the
architecture, identified regressions and helped improve the test
coverage—especially the multi-tool and macOS testers. Further
real-hardware feedback remains welcome, but the current implementation
and compatibility behavior are ready to merge.
Harry Loud
Muon3D
# Description
Texture displacement read the layer stack and the bake target from an
object's first model part, so a multibody object was displaced only
there while the paint on its other parts was kept and ignored. The bake,
prepare and preview jobs now each carry a vector of parts and run them
in one job, under one progress bar and one undo step; remesh and
subdivide cover every part too
# Screenshots/Recordings/Graphs
<img width="3515" height="1838" alt="image"
src="https://github.com/user-attachments/assets/227cd067-4b04-476a-982e-b52c4fdcca23"
/>
# Other
Fixes#16559
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
Removing a layer clears its paint on every part, tiled and view-projected
textures run on across parts, the projection tools paint every visible part,
relief under a raised part reaches down to where the object rests, and closing
the tool no longer crashes the app.
Selecting the web Device tab, or changing the printer preset, called
load_url with the same URL. That navigated the webview again and reloaded
the printer UI, dropping its in-page state such as zoom.
PrinterWebView now remembers the URL, API key and host type of its last
finished load and skips navigation when all three match. A host type change
still reloads, since it selects the page handler. A failed load is not
remembered, so the next selection retries.
Fixes#16752
# Description
Three fixes that all come from the same root cause: code that assumes
the bed is the one at the plate origin.
**Arrange**
- An item whose outline fits the printable area could never be placed.
The arrange bed is inset by `bed_shrink` (1 mm per side) and the item is
inflated by its brim width, and `update_selected_items_inflation()` only
relaxed that inflation when there were more than 5 mm to spare. An item
scaled to fit the print volume was rejected every time, and arrange
looked like it did nothing. The bed margin is now given back where the
largest selected item needs it (never below the skirt distance) and the
inflation is capped at the printable area.
- When an item came back `UNARRANGED`,
`PartPlateList::postprocess_arrange_polygon()` parked it on a virtual
bed that was never created, moving it a whole plate stride off the
plate. The instance is left where the user had it instead.
- When nothing could be placed at all, `ArrangeJob::finalize()` still
cleared plate membership and rebuilt the plates, which re-homed a too
large item to whichever plate it happened to reach over. It now returns
before touching anything.
- Arrange no longer recycles plates. It must not delete a plate the user
created, even when the arrange leaves it empty.
**Scale to Fit Print Volume**
`Selection::scale_to_fit_print_volume()` centred the selection on
`bed.build_volume()`, the bed at the origin. Scaling a model that sat on
plate 2 moved it back to plate 1. The centre of the active plate is
passed in instead (and the print circle is shifted by it for circular
beds). Every plate shares the bed size, so only the centre differs.
It also fitted the whole bed, which on a multi-nozzle printer is larger
than any nozzle can reach. On the H2D the left nozzle covers X 0-325 and
the right X 25-350, so a model that filled the 350 mm bed in X sat
outside both, and the plater warned "The position or size of the model
exceeds the right nozzle's printable range" immediately after the user
asked it to fit. It now fits `PartPlate::get_build_volume(true)`, the
volume every nozzle shares and the same region Arrange already places
items in.
It now also keeps clear of rectangular exclusion zones
(`bed_exclude_area`). The fit volume is the shared bed minus each
exclusion: every rectangle spanned by bed and exclusion edges that
overlaps no exclusion. Candidates no wider than the bed padding are
dropped, otherwise a sliver at the bed edge wins and the model is scaled
to nothing. The candidate allowing the largest scale is used and the
selection is centred on it. Before this, a model could be fitted onto
the Qidi Q2's front-left notch. Circular beds are unchanged.
**Lay on Face**
Laying a face that already points straight up down needs a half turn,
and every horizontal axis does the job. `setFromTwoVectors()` resolved
that through an SVD whose null space is the whole XY plane, so the axis
followed rounding noise: the object landed at an arbitrary angle in the
plate plane, often large enough that a part which fitted the plate no
longer did ("Following objects are laid over the boundary of plate...").
Such a face is now turned over about X, which keeps the footprint, and
the rotation is shared between the gizmo and the `--ground-*` options
instead of duplicated in `Selection::flattening_rotate()` and
`lay_on_face()`.
# Screenshots/Recordings/Graphs
Fit to print volume now excludes exclusion areas and ensure it fits
within shared nozzle areas
<img width="1674" height="1408" alt="image"
src="https://github.com/user-attachments/assets/30bebe17-ee2c-454a-b361-cdb504ad4043"
/>
Lay On Face for faces that are pointing straight up does not cause weird
rotation anymore
https://github.com/user-attachments/assets/adfc0cb4-56e0-4768-873d-ef6c0fb940d9
Auto Arrange now does not remove empty plates anymore
https://github.com/user-attachments/assets/188cada1-304f-4505-a1df-4339f9dad2df
## Tests
New unit tests in `tests/libslic3r`:
- `test_arrange.cpp`: an item filling the printable area is now arranged
(it fails without the margin clamp), an item larger than the printable
area is still refused, and an item that cannot be placed keeps the
position it came in with.
- `test_lay_on_face.cpp`: a box laid on its top face ends up as `diag(1,
-1, -1)` with its 40 x 20 footprint and on the bed, instead of whichever
axis the noise picked.
The GUI side (arrange job, plate rebuild, scale to fit, gizmo) has no
test suite and was verified by reproducing each report and re-running
it. I have not built this branch locally.
Manual checks used while developing:
1. Scale a Benchy to fit the print volume, move it on Y, Arrange: it
centres and stays on the plate.
2. Add a plate, move a too large object onto it, Arrange: nothing moves,
no plate is removed.
3. Scale to fit on plate 2: the model stays on plate 2.
4. Lay on Face on the top face of a flat part: it flips over X and stays
inside the plate footprint.
5. Scale to fit a model that fills the bed in X on a dual-nozzle H2D
(bed 350x320, nozzles 0-325 and 25-350): it now fits the shared 300 mm
area, and the left/right nozzle printable range warnings stay closed.
Before the change the fit produced a 350 mm wide model that was outside
both nozzle areas.
6. Scale to fit on a Qidi Q2 (front-left exclusion 0-11 x 0-16 mm): the
model stays clear of the notch and is fitted to the largest free area.
7. Scale to fit a cube on a Qidi X-Max 4 (four corner exclusions): it
lands in the free central area at a sensible scale instead of going to
0%.