mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 18:58:00 -06:00
Optimization of travel paths for fills
This commit is contained in:
parent
0cd10441a1
commit
415d1a5170
9 changed files with 230 additions and 136 deletions
|
@ -22,4 +22,16 @@ sub clip_end {
|
|||
}
|
||||
}
|
||||
|
||||
sub endpoints {
|
||||
my $self = shift;
|
||||
my ($as_arrayref) = @_;
|
||||
my @points = ($self->points->[0], $self->points->[-1]);
|
||||
return $as_arrayref ? map($_->p, @points) : @points;
|
||||
}
|
||||
|
||||
sub reverse {
|
||||
my $self = shift;
|
||||
@{$self->points} = reverse @{$self->points};
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue