slic3r / Slic3r

Open Source toolpath generator for 3D printers
https://slic3r.org/
GNU Affero General Public License v3.0
3.35k stars 1.29k forks source link

Thin walls path turn at the end #3709

Open xoan opened 7 years ago

xoan commented 7 years ago

Version

current master: 402035732b2f3e0bbcae98d740ef97be8d2edbfd

Operating system type + version

Arch Linux: 4.4.48-1-lts x86_64

Behavior

In some thin walls, the toolpath makes a strange turn at end, but not in all layers.

captura de pantalla_2017-02-15_20-53-41

STL/Config (.ZIP) where problem occurs

bubnikv commented 7 years ago

The thin walls are based on a skeleton of the slice: http://homepages.inf.ed.ac.uk/rbf/HIPR2/skeleton.htm

What you are seeing is following: image

or

image

or

image

Depending on your luck, different end segments are taken. This is not ideal and it has to be improved. Namely, something like this shall be extruded:

image

alranel commented 7 years ago

There's a pruning algorithm which does exactly what described in the last picture. It's based on heuristics and it's not always easy to define a behavior, but it can be definitely improved.