mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Do hole perimeters in ccw direction too
This commit is contained in:
@@ -115,6 +115,7 @@ sub make_perimeter {
|
||||
}
|
||||
|
||||
foreach my $hole (@holes) {
|
||||
$hole->reverse;
|
||||
push @{ $layer->perimeters }, Slic3r::ExtrusionLoop->new(polygon => $hole, role => 'perimeter');
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,11 @@ sub clone {
|
||||
return (ref $self)->new(map $_->clone, @$self);
|
||||
}
|
||||
|
||||
sub reverse {
|
||||
my $self = shift;
|
||||
@$self = reverse @$self;
|
||||
}
|
||||
|
||||
sub lines {
|
||||
my $self = shift;
|
||||
return map Slic3r::Line->new($_), polygon_lines($self);
|
||||
|
||||
Reference in New Issue
Block a user