mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-22 18:19:45 -07:00
Huge speed boost by reducing the number of method calls in GCode.pm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user