Large refactoring to allow processing multimaterial files
This commit is contained in:
parent
04be94023b
commit
02356fd613
13 changed files with 982 additions and 891 deletions
|
@ -44,7 +44,7 @@ my %opt = ();
|
|||
} @{ $model->objects->[0]->volumes->[0]->facets };
|
||||
|
||||
my $material_id = scalar keys %{$new_model->materials};
|
||||
$new_model->materials->{$material_id} = { Name => basename($ARGV[$m]) };
|
||||
$new_model->set_material($material_id, { Name => basename($ARGV[$m]) });
|
||||
$new_object->add_volume(
|
||||
material_id => $material_id,
|
||||
facets => [@new_facets],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue