mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 13:47:59 -06:00
Use Slic3r::ExPolygon::Collection for Layer->slices
This commit is contained in:
parent
7534c1e6d9
commit
13e3a9129c
4 changed files with 21 additions and 4 deletions
|
@ -305,7 +305,9 @@ sub _simplify_slices {
|
|||
my ($distance) = @_;
|
||||
|
||||
foreach my $layer (map @{$_->layers}, @{$self->objects}) {
|
||||
$layer->slices([ map $_->simplify($distance), @{$layer->slices} ]);
|
||||
my @new = map $_->simplify($distance), @{$layer->slices};
|
||||
$layer->slices->clear;
|
||||
$layer->slices->append(@new);
|
||||
foreach my $layerm (@{$layer->regions}) {
|
||||
my @new = map $_->simplify($distance), @{$layerm->slices};
|
||||
$layerm->slices->clear;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue