Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t/loops.t
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-09-10 02:40:46 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-09-10 02:40:46 +0400
commit566d38a47222d88868fd3f6b14447f780eec9ab1 (patch)
tree5512593d4f4e4123d635561d875a4d9029fce419 /t/loops.t
parent311eda7d420936935663a1f80832ee417fb58268 (diff)
Replace TriangleMesh with the XS port
Diffstat (limited to 't/loops.t')
-rw-r--r--t/loops.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/loops.t b/t/loops.t
index 2495f7c6c..794b109c2 100644
--- a/t/loops.t
+++ b/t/loops.t
@@ -39,7 +39,8 @@ use Slic3r::Test;
[ [5,15,0], [15,15,10], [5,15,10] ],
[ [5,5,0], [5,15,10], [5,5,10] ];
- my $mesh = Slic3r::TriangleMesh->new(vertices => \@vertices, facets => \@facets);
+ my $mesh = Slic3r::TriangleMesh->new;
+ $mesh->ReadFromPerl(\@vertices, \@facets);
$mesh->analyze;
my @lines = map $mesh->intersect_facet($_, 10), 0..$#facets;
my $loops = Slic3r::TriangleMesh::make_loops(\@lines);