Skip to content

Commit

Permalink
Bridges now have higher priority than other solid surfaces. #140
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Jan 11, 2012
1 parent 5fefcc0 commit 8735ac3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Slic3r/Fill.pm
Expand Up @@ -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
Expand Down

0 comments on commit 8735ac3

Please sign in to comment.