PrusaSlicer-NonPlainar/lib/Slic3r/Print/Object.pm

15 lines
290 B
Perl
Raw Normal View History

package Slic3r::Print::Object;
2016-09-13 09:24:55 +00:00
# extends c++ class Slic3r::PrintObject (Print.xsp)
2014-06-10 14:01:57 +00:00
use strict;
use warnings;
2013-07-29 18:49:54 +00:00
use List::Util qw(min max sum first);
use Slic3r::Surface ':types';
sub layers {
my $self = shift;
return [ map $self->get_layer($_), 0..($self->layer_count - 1) ];
}
1;