From bfba5b3d789921302791b77acd484702bec2d579 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 15 May 2013 17:38:50 +0200 Subject: [PATCH] Update tests after recent TriangleMesh optimizations --- t/loops.t | 1 + t/slice.t | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/t/loops.t b/t/loops.t index d0340b200..2495f7c6c 100644 --- a/t/loops.t +++ b/t/loops.t @@ -40,6 +40,7 @@ use Slic3r::Test; [ [5,5,0], [5,15,10], [5,5,10] ]; my $mesh = Slic3r::TriangleMesh->new(vertices => \@vertices, facets => \@facets); + $mesh->analyze; my @lines = map $mesh->intersect_facet($_, 10), 0..$#facets; my $loops = Slic3r::TriangleMesh::make_loops(\@lines); is scalar(@$loops), 3, 'correct number of loops detected'; diff --git a/t/slice.t b/t/slice.t index 39ae3f71c..cfa78a60c 100644 --- a/t/slice.t +++ b/t/slice.t @@ -111,7 +111,7 @@ sub vertices { sub add_facet { push @{$mesh->facets}, [ [0,0,0], @{vertices(@_)} ]; - $mesh->BUILD; + $mesh->analyze; } sub intersect {