Use Slic3r::Surface::Collection for Layer::Region->slices
This commit is contained in:
parent
5885be881c
commit
7534c1e6d9
4 changed files with 17 additions and 12 deletions
|
@ -25,7 +25,7 @@ has 'overhang_width' => (is => 'lazy');
|
|||
|
||||
# collection of surfaces generated by slicing the original geometry
|
||||
# divided by type top/bottom/internal
|
||||
has 'slices' => (is => 'rw', default => sub { [] });
|
||||
has 'slices' => (is => 'rw', default => sub { Slic3r::Surface::Collection->new });
|
||||
|
||||
# collection of polygons or polylines representing thin walls contained
|
||||
# in the original geometry
|
||||
|
@ -89,7 +89,8 @@ sub make_surfaces {
|
|||
my ($loops) = @_;
|
||||
|
||||
return if !@$loops;
|
||||
$self->slices([ _merge_loops($loops) ]);
|
||||
$self->slices->clear;
|
||||
$self->slices->append(_merge_loops($loops));
|
||||
|
||||
# detect thin walls by offsetting slices by half extrusion inwards
|
||||
if ($Slic3r::Config->thin_walls) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue