Some incomplete work for moving objects in 3D plater
This commit is contained in:
parent
ac2b6de62b
commit
2f2ae75529
5 changed files with 83 additions and 20 deletions
|
@ -20,6 +20,7 @@ my %opt = ();
|
|||
my %options = (
|
||||
'help' => sub { usage() },
|
||||
'cut=f' => \$opt{cut},
|
||||
'enable-moving' => \$opt{enable_moving},
|
||||
);
|
||||
GetOptions(%options) or usage(1);
|
||||
$ARGV[0] or usage(1);
|
||||
|
@ -33,6 +34,7 @@ my %opt = ();
|
|||
|
||||
my $app = Slic3r::ViewMesh->new;
|
||||
$app->{canvas}->enable_picking(1);
|
||||
$app->{canvas}->enable_moving($opt{enable_moving});
|
||||
$app->{canvas}->load_object($model->objects->[0]);
|
||||
$app->{canvas}->set_bounding_box($model->objects->[0]->bounding_box);
|
||||
$app->{canvas}->set_auto_bed_shape;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue