Bridges now have higher priority than other solid surfaces. #140
This commit is contained in:
parent
5fefcc0dc4
commit
8735ac3c57
@ -52,7 +52,12 @@ sub make_fill {
|
|||||||
my @surfaces = ();
|
my @surfaces = ();
|
||||||
{
|
{
|
||||||
my @surfaces_with_bridge_angle = grep defined $_->bridge_angle, @{$layer->fill_surfaces};
|
my @surfaces_with_bridge_angle = grep defined $_->bridge_angle, @{$layer->fill_surfaces};
|
||||||
foreach my $group (Slic3r::Surface->group({merge_solid => 1}, @{$layer->fill_surfaces})) {
|
|
||||||
|
# give priority to bridges
|
||||||
|
my @groups = Slic3r::Surface->group({merge_solid => 1}, @{$layer->fill_surfaces});
|
||||||
|
@groups = sort { defined $a->[0]->bridge_angle ? -1 : 0 } @groups;
|
||||||
|
|
||||||
|
foreach my $group (@groups) {
|
||||||
my $union = union_ex([ map $_->p, @$group ], undef, 1);
|
my $union = union_ex([ map $_->p, @$group ], undef, 1);
|
||||||
|
|
||||||
# subtract surfaces having a defined bridge_angle from any other
|
# subtract surfaces having a defined bridge_angle from any other
|
||||||
|
Loading…
Reference in New Issue
Block a user