Add perimeter reordering : InOutIn inspired from OrcaSlicer. #12733
+330
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR add an InOutIn reordering of perimeters. This is strongly inspired by the OrcaSlicer implementation.
Two options are added :
Printing the internal perimeters (idx >= 2) from ouside to inside, then printing the external (idx 0) and finishing with the firsts internals (idx 1) seems to reduce the internal tensions and stop the front hull of the benchy from curling (Fig. 1).
Fig.1 : Benchy printed on a Mini with 0.4 nozzle, IS 0.20 speed profile. Left: no reordering, right: InOutIn reordering.
In some cases (e.g. 10.60 mm from the benchy Fig. 2), the Arachne produces two small loops (idx 2) and the final order is not optimal.
Fig. 2: Top: On the left, the first small loop and on the right, the following perimeters (idx 1 and 0),
Bottom: On the left, the second small loop and on the right, the following perimeters (idx 1 and 0).