mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Ported ExtrusionPath to XS. Failing test for Surface
This commit is contained in:
@@ -228,8 +228,9 @@ sub point_is_on_left_of_segment {
|
||||
}
|
||||
|
||||
sub polyline_lines {
|
||||
my ($polygon) = @_;
|
||||
return map Slic3r::Line->new($polygon->[$_], $polygon->[$_+1]), 0 .. $#$polygon-1;
|
||||
my ($polyline) = @_;
|
||||
my @points = @$polyline;
|
||||
return map Slic3r::Line->new(@points[$_, $_+1]), 0 .. $#points-1;
|
||||
}
|
||||
|
||||
sub polygon_lines {
|
||||
|
||||
Reference in New Issue
Block a user