mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-12 10:21:58 +02:00
Ported make_clockwise() and make_counter_clockwise()
This commit is contained in:
1 parent
fe061b19ad
commit
f7ada2b5db
5 files changed
+29
-19
No files matched your search
@@ -15,24 +15,6 @@ sub wkt {
|
||||
return sprintf "POLYGON((%s))", join ',', map "$_->[0] $_->[1]", @$self;
|
||||
}
|
||||
|
||||
sub make_counter_clockwise {
|
||||
my $self = shift;
|
||||
if (!$self->is_counter_clockwise) {
|
||||
$self->reverse;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
sub make_clockwise {
|
||||
my $self = shift;
|
||||
if ($self->is_counter_clockwise) {
|
||||
$self->reverse;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
sub merge_continuous_lines {
|
||||
my $self = shift;
|
||||
|
||||
|
||||
Reference in new issue
Block a user