Store layer slices and region slices as XS data to save memory and make them shared across threads

This commit is contained in:
Alessandro Ranellucci 2013-07-07 12:54:20 +02:00
parent d06ac3e31e
commit f7967414e0
4 changed files with 9 additions and 4 deletions

View file

@ -147,7 +147,7 @@ sub _merge_loops {
Slic3r::debugf " %d surface(s) having %d holes detected from %d polylines\n",
scalar(@$expolygons), scalar(map $_->holes, @$expolygons), scalar(@$loops);
return map Slic3r::Surface->new(expolygon => $_, surface_type => S_TYPE_INTERNAL), @$expolygons;
return map Slic3r::Surface->new(expolygon => Slic3r::ExPolygon::XS->new(@$_), surface_type => S_TYPE_INTERNAL), @$expolygons;
}
sub make_perimeters {