mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Smarter ordering of gap fill
This commit is contained in:
parent
2b8662cf0c
commit
8fe228fcee
2 changed files with 18 additions and 5 deletions
|
@ -196,8 +196,10 @@ sub make_fill {
|
|||
}
|
||||
|
||||
# add thin fill regions
|
||||
push @fills, @{$layerm->thin_fills};
|
||||
push @fills_ordering_points, map $_->unpack->points->[0], @{$layerm->thin_fills};
|
||||
if (@{ $layerm->thin_fills }) {
|
||||
push @fills, Slic3r::ExtrusionPath::Collection->new(paths => $layerm->thin_fills);
|
||||
push @fills_ordering_points, $fills[-1]->first_point;
|
||||
}
|
||||
|
||||
# organize infill paths using a nearest-neighbor search
|
||||
@fills = @fills[ chained_path(\@fills_ordering_points) ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue