2014-05-15 14:37:18 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Slic3r::XS;
|
2019-06-20 14:28:37 +00:00
|
|
|
use Test::More tests => 3;
|
2014-05-15 14:37:18 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
my $model = Slic3r::Model->new;
|
|
|
|
my $object = $model->_add_object;
|
|
|
|
isa_ok $object, 'Slic3r::Model::Object::Ref';
|
2014-12-12 21:43:04 +00:00
|
|
|
isa_ok $object->origin_translation, 'Slic3r::Pointf3::Ref';
|
|
|
|
$object->origin_translation->translate(10,0,0);
|
|
|
|
is_deeply \@{$object->origin_translation}, [10,0,0], 'origin_translation is modified by ref';
|
2014-07-01 17:49:15 +00:00
|
|
|
|
2019-06-20 14:28:37 +00:00
|
|
|
# my $lhr = [ [ 5, 10, 0.1 ] ];
|
|
|
|
# $object->set_layer_height_ranges($lhr);
|
|
|
|
# is_deeply $object->layer_height_ranges, $lhr, 'layer_height_ranges roundtrip';
|
2014-05-15 14:37:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
__END__
|