mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
Huge speed boost by reducing the number of method calls in GCode.pm
This commit is contained in:
parent
73c05a6092
commit
055273fbc8
5 changed files with 85 additions and 64 deletions
|
@ -65,6 +65,11 @@ sub points {
|
|||
return $self->polyline;
|
||||
}
|
||||
|
||||
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