mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Connect infill segments and adjust spacing and flow rate to fill the area completely without leaving gaps. #89
This commit is contained in:
parent
4fe340cc56
commit
0aff5fab24
7 changed files with 56 additions and 14 deletions
|
@ -18,7 +18,7 @@ sub add {
|
|||
|
||||
sub endpoints {
|
||||
my $self = shift;
|
||||
return map $_->endpoints, @{$self->paths};
|
||||
return [ map $_->endpoints, @{$self->paths} ];
|
||||
}
|
||||
|
||||
sub shortest_path {
|
||||
|
@ -30,7 +30,7 @@ sub shortest_path {
|
|||
CYCLE: while (@{$self->paths}) {
|
||||
# find nearest point
|
||||
$start_at = $start_near
|
||||
? Slic3r::Point->new(Slic3r::Geometry::nearest_point($start_near, [ $self->endpoints ]))
|
||||
? Slic3r::Point->new(Slic3r::Geometry::nearest_point($start_near, $self->endpoints))
|
||||
: $self->endpoints->[0];
|
||||
|
||||
# loop through paths to find the one that starts or ends at the point found
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue