mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
New freeze.t test
This commit is contained in:
parent
71057b54a9
commit
f26f084064
3 changed files with 38 additions and 2 deletions
|
@ -57,9 +57,15 @@ sub model {
|
|||
],
|
||||
}
|
||||
|
||||
my $mesh = Slic3r::TriangleMesh->new(
|
||||
vertices => $vertices,
|
||||
facets => $facets,
|
||||
);
|
||||
$mesh->scale($params{scale}) if $params{scale};
|
||||
|
||||
my $model = Slic3r::Model->new;
|
||||
my $object = $model->add_object(vertices => $vertices);
|
||||
$object->add_volume(facets => $facets);
|
||||
my $object = $model->add_object(vertices => $mesh->vertices);
|
||||
$object->add_volume(facets => $mesh->facets);
|
||||
$object->add_instance(
|
||||
offset => [0,0],
|
||||
rotation => $params{rotation} // 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue