mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Ported regular_points() to XS and renamed it to equally_spaced_points()
This commit is contained in:
parent
6bb425e88d
commit
885ab5844e
8 changed files with 45 additions and 34 deletions
|
@ -451,7 +451,7 @@ sub generate_toolpaths {
|
|||
}
|
||||
|
||||
# apply a pattern to the loop
|
||||
my @positions = map Slic3r::Polygon->new(@$_)->split_at_first_point->regular_points($circle_distance), @external_loops;
|
||||
my @positions = map @{Slic3r::Polygon->new(@$_)->equally_spaced_points($circle_distance)}, @external_loops;
|
||||
@loops0 = @{diff(
|
||||
[ @external_loops ],
|
||||
[ map { my $c = $circle->clone; $c->translate(@$_); $c } @positions ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue