Skip to content

Commit

Permalink
revert loops test
Browse files Browse the repository at this point in the history
  • Loading branch information
Oekn5w authored and lordofhyphens committed Dec 2, 2019
1 parent 76152fd commit 880a00e
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions t/loops.t
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 880a00e

Please sign in to comment.