Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t/multi.t
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-11-23 00:43:35 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-11-23 00:43:35 +0400
commit4577f0725c2b0d2868d4451d1c1a281d11d6b364 (patch)
treed1d4b76382d997390a8f21227fea72f270b80c82 /t/multi.t
parenta950fbe0c2f7384fda38d0e6816a4406dcfc0e71 (diff)
Incomplete work for XS-based convex_hull
Diffstat (limited to 't/multi.t')
-rw-r--r--t/multi.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/multi.t b/t/multi.t
index 4524891c7..0071363d9 100644
--- a/t/multi.t
+++ b/t/multi.t
@@ -8,9 +8,8 @@ BEGIN {
}
use List::Util qw(first);
-use Math::ConvexHull::MonotoneChain qw(convex_hull);
use Slic3r;
-use Slic3r::Geometry qw(scale);
+use Slic3r::Geometry qw(scale convex_hull);
use Slic3r::Test;
{
@@ -54,7 +53,7 @@ use Slic3r::Test;
$point->translate(map scale($_), @{ $config->extruder_offset->[$tool] });
}
});
- my $convex_hull = Slic3r::Polygon->new(@{convex_hull([ map $_->pp, @extrusion_points ])});
+ my $convex_hull = convex_hull(\@extrusion_points);
ok !(first { $convex_hull->contains_point($_) } @toolchange_points), 'all toolchanges happen outside skirt';
}