Update tests after recent TriangleMesh optimizations

This commit is contained in:
Alessandro Ranellucci 2013-05-15 17:38:50 +02:00
parent 90280fe63b
commit bfba5b3d78
2 changed files with 2 additions and 1 deletions

View File

@ -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';

View File

@ -111,7 +111,7 @@ sub vertices {
sub add_facet {
push @{$mesh->facets}, [ [0,0,0], @{vertices(@_)} ];
$mesh->BUILD;
$mesh->analyze;
}
sub intersect {