mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-10 09:49:02 +08:00
revert loops test
This commit is contained in:
parent
76152fd5fa
commit
880a00e421
18
t/loops.t
18
t/loops.t
@ -23,21 +23,17 @@ use Slic3r::Test;
|
||||
|
||||
# center around origin
|
||||
my $bb = $mesh1->bounding_box;
|
||||
|
||||
my $trafo = Slic3r::TransformationMatrix->new;
|
||||
$trafo->set_translation_xyz(
|
||||
$mesh1->translate(
|
||||
-($bb->x_min + $bb->size->x/2),
|
||||
-($bb->y_min + $bb->size->y/2), #//
|
||||
-($bb->z_min + $bb->size->z/2),
|
||||
);
|
||||
|
||||
$mesh1->transform($trafo);
|
||||
|
||||
$trafo->set_scale_uni(1.2);
|
||||
|
||||
my $mesh2 = $mesh1->get_transformed_mesh($trafo);
|
||||
|
||||
my $mesh3 = $mesh2->get_transformed_mesh($trafo);
|
||||
|
||||
my $mesh2 = $mesh1->clone;
|
||||
$mesh2->scale(1.2);
|
||||
|
||||
my $mesh3 = $mesh2->clone;
|
||||
$mesh3->scale(1.2);
|
||||
|
||||
$mesh1->reverse_normals;
|
||||
ok $mesh1->volume < 0, 'reverse_normals';
|
||||
|
Loading…
x
Reference in New Issue
Block a user