mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 21:14:01 -06:00
Store layer slices and region slices as XS data to save memory and make them shared across threads
This commit is contained in:
parent
d06ac3e31e
commit
f7967414e0
4 changed files with 9 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue