Add two more repair actions and add volume to stats

This commit is contained in:
Alessandro Ranellucci 2013-07-13 19:00:38 +02:00
parent b709acf10f
commit 00683195c8
3 changed files with 9 additions and 1 deletions

View file

@ -4,7 +4,7 @@ use strict;
use warnings;
use Slic3r::XS;
use Test::More tests => 4;
use Test::More tests => 5;
is Slic3r::TriangleMesh::XS::hello_world(), 'Hello world!',
'hello world';
@ -24,6 +24,7 @@ my $cube = {
my $stats = $m->stats;
is $stats->{number_of_facets}, scalar(@{ $cube->{facets} }), 'stats.number_of_facets';
ok abs($stats->{volume} - 20*20*20) < 1E-3, 'stats.volume';
}
__END__