mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 14:13:57 -06:00
Huge speed boost by reducing the number of method calls in GCode.pm
This commit is contained in:
parent
36e5e1f933
commit
0049b02bed
5 changed files with 83 additions and 62 deletions
|
@ -117,6 +117,11 @@ sub first_point {
|
|||
return $self->polyline->[0];
|
||||
}
|
||||
|
||||
sub last_point {
|
||||
my $self = shift;
|
||||
return $self->polyline->[-1];
|
||||
}
|
||||
|
||||
sub is_perimeter {
|
||||
my $self = shift;
|
||||
return $self->role == EXTR_ROLE_PERIMETER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue