mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-09 06:45:25 -06:00
Return ExtrusionPath->polyline and ExtrusionLoop->polygon by reference
This commit is contained in:
parent
d2e4bba074
commit
dd70f6be2f
6 changed files with 26 additions and 10 deletions
|
@ -16,7 +16,7 @@ my $path = Slic3r::ExtrusionPath->new(
|
|||
polyline => Slic3r::Polyline->new(@$points),
|
||||
role => Slic3r::ExtrusionPath::EXTR_ROLE_EXTERNAL_PERIMETER,
|
||||
);
|
||||
isa_ok $path->polyline, 'Slic3r::Polyline', 'path polyline';
|
||||
isa_ok $path->polyline, 'Slic3r::Polyline::Ref', 'path polyline';
|
||||
is_deeply $path->polyline->pp, $points, 'path points roundtrip';
|
||||
|
||||
$path->reverse;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue