mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
Use precomputed normals in 3D preview
This commit is contained in:
parent
d4512a12df
commit
bc48e17dff
3 changed files with 26 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue