per-thread clipper object for parallel support generation #888

This commit is contained in:
Mike Sheldrake 2013-01-16 05:52:26 -08:00
parent 241dff00e2
commit f3a1221039

View file

@ -674,6 +674,7 @@ sub generate_support_material {
items => [ keys %layers ],
thread_cb => sub {
my $q = shift;
$Slic3r::Geometry::Clipper::clipper = Math::Clipper->new;
my $result = {};
while (defined (my $layer_id = $q->dequeue)) {
$result->{$layer_id} = [ $process_layer->($layer_id) ];