mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 09:02:53 +00:00
Ported regular_points() to XS and renamed it to equally_spaced_points()
This commit is contained in:
@@ -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 ],
|
||||
|
||||
Reference in New Issue
Block a user