mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 09:02:53 +00:00
Use Slic3r::Surface::Collection for Layer::Region->slices
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user