mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Thread-safe integration of ExtrusionPath::Collection
This commit is contained in:
parent
c030e38908
commit
1b285f3f46
12 changed files with 81 additions and 104 deletions
|
@ -42,12 +42,15 @@ sub cleanup {
|
|||
my $self = shift;
|
||||
|
||||
# split paths at angles that are too acute to be printed as they will cause blobs
|
||||
@{$self->paths} = map $_->split_at_acute_angles, @{$self->paths};
|
||||
my @paths = map $_->split_at_acute_angles, @$self;
|
||||
$self->clear;
|
||||
$self->append(@paths);
|
||||
}
|
||||
|
||||
sub detect_arcs {
|
||||
my $self = shift;
|
||||
@{$self->paths} = map $_->detect_arcs(@_), @{$self->paths};
|
||||
|
||||
return map $_->detect_arcs(@_), @$self;
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue