mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Connect infill segments and adjust spacing and flow rate to fill the area completely without leaving gaps. #89
This commit is contained in:
parent
4fe340cc56
commit
0aff5fab24
7 changed files with 56 additions and 14 deletions
|
@ -60,6 +60,7 @@ sub make_fill {
|
|||
$union = diff_ex(
|
||||
[ map @$_, @$union ],
|
||||
[ map $_->p, @surfaces_with_bridge_angle ],
|
||||
1,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -67,6 +68,7 @@ sub make_fill {
|
|||
$union = diff_ex(
|
||||
[ map @$_, @$union ],
|
||||
[ map $_->p, @surfaces ],
|
||||
1,
|
||||
);
|
||||
|
||||
push @surfaces, map Slic3r::Surface->cast_from_expolygon($_,
|
||||
|
@ -103,6 +105,7 @@ sub make_fill {
|
|||
density => $density,
|
||||
flow_width => $flow_width,
|
||||
);
|
||||
my $params = shift @paths;
|
||||
|
||||
# save into layer
|
||||
push @{ $layer->fills }, Slic3r::ExtrusionPath::Collection->new(
|
||||
|
@ -111,10 +114,11 @@ sub make_fill {
|
|||
[ @$_ ],
|
||||
role => ($is_bridge ? 'bridge' : $is_solid ? 'solid-fill' : 'fill'),
|
||||
depth_layers => $surface->depth_layers,
|
||||
flow_ratio => $params->{flow_ratio},
|
||||
), @paths,
|
||||
],
|
||||
);
|
||||
$layer->fills->[-1]->cleanup;
|
||||
###$layer->fills->[-1]->cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue