mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Ported traverse_pt() to XS
This commit is contained in:
parent
b47b8ee34f
commit
a93c862338
9 changed files with 71 additions and 27 deletions
|
@ -4,7 +4,7 @@ use Moo;
|
|||
extends 'Slic3r::Fill::Base';
|
||||
|
||||
use Slic3r::Geometry qw(scale unscale X);
|
||||
use Slic3r::Geometry::Clipper qw(offset offset2 union_pt traverse_pt);
|
||||
use Slic3r::Geometry::Clipper qw(offset offset2 union_pt_chained);
|
||||
|
||||
sub fill_surface {
|
||||
my $self = shift;
|
||||
|
@ -37,7 +37,7 @@ sub fill_surface {
|
|||
# generate paths from the outermost to the innermost, to avoid
|
||||
# adhesion problems of the first central tiny loops
|
||||
@loops = map Slic3r::Polygon->new(@$_),
|
||||
reverse traverse_pt( union_pt(\@loops) );
|
||||
reverse @{union_pt_chained(\@loops)};
|
||||
|
||||
# order paths using a nearest neighbor search
|
||||
my @paths = ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue