Use precomputed normals in 3D preview

This commit is contained in:
Alessandro Ranellucci 2013-09-11 20:15:42 +02:00
parent d4512a12df
commit bc48e17dff
3 changed files with 26 additions and 4 deletions

View file

@ -4,7 +4,7 @@ use strict;
use warnings;
use Slic3r::XS;
use Test::More tests => 50;
use Test::More tests => 51;
is Slic3r::TriangleMesh::hello_world(), 'Hello world!',
'hello world';
@ -22,6 +22,7 @@ my $cube = {
is_deeply $vertices, $cube->{vertices}, 'vertices arrayref roundtrip';
is_deeply $facets, $cube->{facets}, 'facets arrayref roundtrip';
is scalar(@{$m->normals}), scalar(@$facets), 'normals returns the right number of items';
{
my $m2 = $m->clone;