diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-06-15 14:10:57 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-06-15 14:10:57 +0400 |
commit | a8981b8b359eedc2294404f72aa9b70182d62d97 (patch) | |
tree | fb1f92883887442f73013b76fe9fd0ebd7ca8e30 /t/print.t | |
parent | 5fa49aad02d646a9d71cc051b0a2c6c8bc471973 (diff) |
Bugfix: infill was clipped badly. Includes regression test. #1245
Diffstat (limited to 't/print.t')
-rw-r--r-- | t/print.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/t/print.t b/t/print.t new file mode 100644 index 000000000..485ad12bb --- /dev/null +++ b/t/print.t @@ -0,0 +1,20 @@ +use Test::More tests => 1; +use strict; +use warnings; + +BEGIN { + use FindBin; + use lib "$FindBin::Bin/../lib"; +} + +use List::Util qw(first); +use Slic3r; +use Slic3r::Test; + +{ + my $print = Slic3r::Test::init_print('20mm_cube', rotation => 45); + ok !(first { $_ < 0 } map @$_, map @{$_->used_vertices}, grep $_, map @{$_->meshes}, @{$print->objects}), + "object is still in positive coordinate space even after rotation"; +} + +__END__ |