diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-05-09 16:24:35 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-05-09 16:24:35 +0400 |
commit | 7ba08c90cff94d8e3e3c9c10e4076e9b3709db96 (patch) | |
tree | b62c93c5eaf9b5f7dc21e6a7ec6c024ba15639b6 /utils | |
parent | bc023c2d5144ddef3dc231fa1dc1c3e5e30f4d01 (diff) |
Refactoring to Model API for making it stricter and safer
Diffstat (limited to 'utils')
-rw-r--r-- | utils/dump-stl.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/dump-stl.pl b/utils/dump-stl.pl index 240f10b24..08b4d750a 100644 --- a/utils/dump-stl.pl +++ b/utils/dump-stl.pl @@ -18,7 +18,7 @@ $ARGV[0] or usage(1); if (-e $ARGV[0]) { my $model = Slic3r::Format::STL->read_file($ARGV[0]); - $model->objects->[0]->add_instance(offset => [0,0]); + $model->objects->[0]->add_instance(offset => Slic3r::Pointf->new(0,0)); my $mesh = $model->mesh; $mesh->repair; printf "VERTICES = %s\n", join ',', map "[$_->[0],$_->[1],$_->[2]]", @{$mesh->vertices}; |