mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Refactor the AMF parser so that it popolates a Model object directly. Also read constellations
This commit is contained in:
@@ -43,9 +43,10 @@ my %opt = ();
|
||||
$f;
|
||||
} @{ $model->objects->[0]->volumes->[0]->facets };
|
||||
|
||||
push @{$new_model->materials}, { Name => basename($ARGV[$m]) };
|
||||
my $material_id = scalar keys %{$new_model->materials};
|
||||
$new_model->materials->{$material_id} = { Name => basename($ARGV[$m]) };
|
||||
$new_object->add_volume(
|
||||
material_id => $#{$new_model->materials},
|
||||
material_id => $material_id,
|
||||
facets => [@new_facets],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user