Ported (and used) ExtrusionPath->first_point
This commit is contained in:
parent
fe42427a54
commit
9fb14f2119
6 changed files with 16 additions and 9 deletions
|
@ -4,7 +4,7 @@ use strict;
|
|||
use warnings;
|
||||
|
||||
use Slic3r::XS;
|
||||
use Test::More tests => 7;
|
||||
use Test::More tests => 8;
|
||||
|
||||
my $points = [
|
||||
[100, 100],
|
||||
|
@ -28,6 +28,8 @@ is scalar(@$path), 4, 'append to path';
|
|||
$path->pop_back;
|
||||
is scalar(@$path), 3, 'pop_back from path';
|
||||
|
||||
ok $path->first_point->coincides_with($path->polyline->[0]), 'first_point';
|
||||
|
||||
$path = $path->clone;
|
||||
|
||||
is $path->role, Slic3r::ExtrusionPath::EXTR_ROLE_EXTERNAL_PERIMETER, 'role';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue