Bugfix: some top/bottom solid shells are not treated as solid. #689

This commit is contained in:
Alessandro Ranellucci 2012-12-21 20:25:48 +01:00
parent e372372a5d
commit 5930267de9

View File

@ -336,10 +336,8 @@ sub discover_horizontal_shells {
} }
foreach my $type (S_TYPE_TOP, S_TYPE_BOTTOM) { foreach my $type (S_TYPE_TOP, S_TYPE_BOTTOM) {
# find surfaces of current type for current layer # find slices of current type for current layer
# and offset them to take perimeters into account my @surfaces = grep $_->surface_type == $type, @{$layerm->slices} or next;
my @surfaces = map $_->offset($Slic3r::Config->perimeters * $layerm->perimeter_flow->scaled_width),
grep $_->surface_type == $type, @{$layerm->fill_surfaces} or next;
my $surfaces_p = [ map $_->p, @surfaces ]; my $surfaces_p = [ map $_->p, @surfaces ];
Slic3r::debugf "Layer %d has %d surfaces of type '%s'\n", Slic3r::debugf "Layer %d has %d surfaces of type '%s'\n",
$i, scalar(@surfaces), ($type == S_TYPE_TOP ? 'top' : 'bottom'); $i, scalar(@surfaces), ($type == S_TYPE_TOP ? 'top' : 'bottom');