mirror of https://github.com/vitalif/Slic3r
Include support contact layers in skirt/brim generation
parent
3b47e1a492
commit
60e5e2166a
|
@ -591,7 +591,8 @@ sub make_skirt {
|
||||||
if (@{ $object->support_layers }) {
|
if (@{ $object->support_layers }) {
|
||||||
my @support_layers = map $object->support_layers->[$_], 0..min($Slic3r::Config->skirt_height-1, $#{$object->support_layers});
|
my @support_layers = map $object->support_layers->[$_], 0..min($Slic3r::Config->skirt_height-1, $#{$object->support_layers});
|
||||||
push @layer_points,
|
push @layer_points,
|
||||||
(map @{$_->unpack->polyline}, map @{$_->support_fills->paths}, grep $_->support_fills, @support_layers);
|
(map @{$_->unpack->polyline}, map @{$_->support_fills->paths}, grep $_->support_fills, @support_layers),
|
||||||
|
(map @{$_->unpack->polyline}, map @{$_->support_interface_fills->paths}, grep $_->support_interface_fills, @support_layers);
|
||||||
}
|
}
|
||||||
push @points, map move_points($_, @layer_points), @{$object->copies};
|
push @points, map move_points($_, @layer_points), @{$object->copies};
|
||||||
}
|
}
|
||||||
|
@ -659,6 +660,9 @@ sub make_brim {
|
||||||
push @object_islands,
|
push @object_islands,
|
||||||
(map $_->unpack->polyline->grow($grow_distance), @{$support_layer0->support_fills->paths})
|
(map $_->unpack->polyline->grow($grow_distance), @{$support_layer0->support_fills->paths})
|
||||||
if $support_layer0->support_fills;
|
if $support_layer0->support_fills;
|
||||||
|
push @object_islands,
|
||||||
|
(map $_->unpack->polyline->grow($grow_distance), @{$support_layer0->support_interface_fills->paths})
|
||||||
|
if $support_layer0->support_interface_fills;
|
||||||
}
|
}
|
||||||
foreach my $copy (@{$object->copies}) {
|
foreach my $copy (@{$object->copies}) {
|
||||||
push @islands, map $_->clone->translate(@$copy), @object_islands;
|
push @islands, map $_->clone->translate(@$copy), @object_islands;
|
||||||
|
|
Loading…
Reference in New Issue