Feature/fix fragmented sparse infill paths #9707
Open
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.
fix #9635
Description
The infill path generation of sparse infill patterns "Rectilinear" and "Aligned Rectilinear" will be improved when "Maximum length of the infill anchor" is likely to be long enough to connect the infill lines.
FillRectilinear::fill_surface_by_lines()
performs better in connecting non intersecting parallel infill lines compared toFillRectilinear::fill_surface_by_multilines()
that makes use ofFill::connect_infill()
.FillRectilinear::fill_surface_by_lines()
(usingFillRectilinear::connect_segment_intersections_by_contours()
) connects infill lines when "Maximum length of the infill anchor" is 0.05 mm or higher, not being able to create infill anchors and therefore not respecting "Sparse infill anchor length" and "Maximum length of the infill anchor" to its values. The infill lines will be fully connected when "Maximum length of the infill anchor" is more than twice as long as the infill line pitch, guaranteeing correct infill anchor behavior for infill line boundary angles from 30 to 150 degrees.Tests
Tested with local build.
The example shared in #9635 has a infill line pitch of slightly more than 2.647 mm ((110% * 0.40 mm - 0.20 mm * (1 - pi/4)) / 15%) and will have improved infill path generation when "Maximum length of the infill anchor" is set to 5.295 mm or higher.