2012-04-29 10:51:20 +00:00
|
|
|
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;
|
2012-04-29 10:51:20 +00:00
|
|
|
|
2013-07-29 18:49:54 +00:00
|
|
|
use List::Util qw(min max sum first);
|
2012-05-19 14:04:33 +00:00
|
|
|
use Slic3r::Surface ':types';
|
2012-04-29 10:51:20 +00:00
|
|
|
|
2014-05-06 08:07:18 +00:00
|
|
|
sub layers {
|
2013-05-19 09:35:41 +00:00
|
|
|
my $self = shift;
|
2014-05-06 08:07:18 +00:00
|
|
|
return [ map $self->get_layer($_), 0..($self->layer_count - 1) ];
|
2013-05-19 09:35:41 +00:00
|
|
|
}
|
|
|
|
|
2012-04-29 10:51:20 +00:00
|
|
|
1;
|