mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-10 07:15:08 -06:00
Polyline->lines
This commit is contained in:
parent
ab6b3d41a7
commit
439255ca46
5 changed files with 39 additions and 1 deletions
|
@ -14,7 +14,7 @@ my $square = [ # ccw
|
|||
];
|
||||
|
||||
my $polygon = Slic3r::Polygon->new(@$square);
|
||||
is_deeply [ @{$polygon->pp} ], [ @$square ], 'polygon roundtrip';
|
||||
is_deeply $polygon->pp, $square, 'polygon roundtrip';
|
||||
|
||||
is ref($polygon->arrayref), 'ARRAY', 'polygon arrayref is unblessed';
|
||||
isa_ok $polygon->[0], 'Slic3r::Point', 'polygon point is blessed';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue