mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Manual rebase of the avoid_crossing_perimeters feature
This commit is contained in:
parent
d278998f11
commit
0eadc5adba
12 changed files with 362 additions and 11 deletions
|
@ -58,12 +58,14 @@ sub rotate {
|
|||
my $self = shift;
|
||||
my ($angle, $center) = @_;
|
||||
@$self = @{ +(Slic3r::Geometry::rotate_points($angle, $center, $self))[0] };
|
||||
$self;
|
||||
}
|
||||
|
||||
sub translate {
|
||||
my $self = shift;
|
||||
my ($x, $y) = @_;
|
||||
@$self = @{ +(Slic3r::Geometry::move_points([$x, $y], $self))[0] };
|
||||
$self;
|
||||
}
|
||||
|
||||
sub x { $_[0]->[0] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue