Minimize distance traveled outside walls when "Avoid crossing walls" is enabled #750

Open
opened 2026-04-05 16:28:35 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @ScheglyakStas on 2/15/2026

Is there an existing issue for this feature request?

  • I have searched the existing issues

When "Avoid crossing walls" is enabled, the current algorithm just travels in a straight line when crossing a wall is inevitable (see picture below). This results in additional stringing/blobs on filaments which are hard to dry or prone to stringing, such as PA6 and TPU. In the picture below, "Avoid crossing walls" is enabled, but there are still tons of travel moves outside the walls.

Image

I would suggest modifying the algorithm to minimize the distance traveled outside walls, even at the cost of total travel distance. In the screenshot above, this would result in all of the travel moves staying within walls, except for the ones crossing the holes.
Since this increases print time even further, you can implement two presets for "Avoid crossing walls" - "Normal" preset keeping the current behavior, and "Extreme" preset implementing the behavior I've described.

Which printers will be beneficial to this feature?

All

Describe the solution you'd like

An improved "Avoid crossing walls" algorithm that minimizes the distance traveled outside walls when crossing them is inevitable.

Describe alternatives you've considered

No response

Additional context

No response

*Originally created by @ScheglyakStas on 2/15/2026* ### Is there an existing issue for this feature request? - [x] I have searched the existing issues ### Is your feature request related to a problem? When "Avoid crossing walls" is enabled, the current algorithm just travels in a straight line when crossing a wall is inevitable (see picture below). This results in additional stringing/blobs on filaments which are hard to dry or prone to stringing, such as PA6 and TPU. In the picture below, "Avoid crossing walls" is enabled, but there are still tons of travel moves outside the walls. <img width="1221" height="529" alt="Image" src="https://github.com/user-attachments/assets/e805e8bb-8191-4e77-a106-d2194cfdf5ff" /> I would suggest modifying the algorithm to minimize the distance traveled outside walls, even at the cost of total travel distance. In the screenshot above, this would result in all of the travel moves staying within walls, except for the ones crossing the holes. Since this increases print time even further, you can implement two presets for "Avoid crossing walls" - "Normal" preset keeping the current behavior, and "Extreme" preset implementing the behavior I've described. ### Which printers will be beneficial to this feature? All ### Describe the solution you'd like An improved "Avoid crossing walls" algorithm that minimizes the distance traveled outside walls when crossing them is inevitable. ### Describe alternatives you've considered _No response_ ### Additional context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#750