mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Store layer slices and region slices as XS data to save memory and make them shared across threads
This commit is contained in:
1 parent
d06ac3e31e
commit
f7967414e0
4 files changed
+9
-4
No files matched your search
+3
-1
@@ -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