Skip to content

Commit

Permalink
Fixes scars on thing walls when "avoid crossing wall" is turned on (#…
Browse files Browse the repository at this point in the history
…2659)

* Travel very close to the inner holes, could cross external perimeter when the avoid crossing perimeters was enabled.

(cherry picked from commit prusa3d/PrusaSlicer@6c51e51)

* Modified variable offset in the avoid crossing perimeters to not cause scars on thin objects (#7699).

Previously, the minimum contour width was chosen too conservative and, on some thin objects, only allowed minimal (or non) offset. This could result in travels being planned along the outer perimeter.

Now, the minimum contour width is chosen much smaller at the start and tested if the variable offset wasn't failed (the outer contour broke up into more parts, more or fewer holes, etc.).
If any problem is detected, the variable offset is recalculated with a larger minimum contour width.

(cherry picked from commit prusa3d/PrusaSlicer@dc00f0b)

---------

Co-authored-by: Lukáš Hejl <[email protected]>
  • Loading branch information
Noisyfox and hejllukas authored Nov 9, 2023
1 parent 3332875 commit f16feff
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 103 deletions.
Loading

0 comments on commit f16feff

Please sign in to comment.