mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Store layer slices and region slices as XS data to save memory and make them shared across threads
This commit is contained in:
@@ -78,7 +78,9 @@ sub region {
|
||||
# merge all regions' slices to get islands
|
||||
sub make_slices {
|
||||
my $self = shift;
|
||||
$self->slices(union_ex([ map $_->p, map @{$_->slices}, @{$self->regions} ]));
|
||||
|
||||
my $slices = union_ex([ map $_->p, map @{$_->slices}, @{$self->regions} ]);
|
||||
$self->slices([ map Slic3r::ExPolygon::XS->new(@$_), @$slices ]);
|
||||
}
|
||||
|
||||
sub make_perimeters {
|
||||
|
||||
Reference in New Issue
Block a user