Bridges now have higher priority than other solid surfaces. #140

This commit is contained in:
Alessandro Ranellucci 2012-01-11 23:15:32 +01:00
parent 5fefcc0dc4
commit 8735ac3c57

View File

@ -52,7 +52,12 @@ sub make_fill {
my @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);
# subtract surfaces having a defined bridge_angle from any other