mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Bugfix: infill was clipped badly. Includes regression test. #1245
This commit is contained in:
parent
5fa49aad02
commit
a8981b8b35
4 changed files with 35 additions and 7 deletions
|
@ -16,7 +16,7 @@ my %cuboids = (
|
|||
);
|
||||
|
||||
sub model {
|
||||
my ($model_name) = @_;
|
||||
my ($model_name, %params) = @_;
|
||||
|
||||
my ($vertices, $facets);
|
||||
if ($cuboids{$model_name}) {
|
||||
|
@ -32,7 +32,10 @@ sub model {
|
|||
my $model = Slic3r::Model->new;
|
||||
my $object = $model->add_object(vertices => $vertices);
|
||||
$object->add_volume(facets => $facets);
|
||||
$object->add_instance(offset => [0,0]);
|
||||
$object->add_instance(
|
||||
offset => [0,0],
|
||||
rotation => $params{rotation},
|
||||
);
|
||||
return $model;
|
||||
}
|
||||
|
||||
|
@ -46,7 +49,7 @@ sub init_print {
|
|||
my $print = Slic3r::Print->new(config => $config);
|
||||
|
||||
$model_name = [$model_name] if ref($model_name) ne 'ARRAY';
|
||||
$print->add_model(model($_)) for @$model_name;
|
||||
$print->add_model(model($_, %params)) for @$model_name;
|
||||
$print->validate;
|
||||
|
||||
return $print;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue