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
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-01-28 03:40:08 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-01-28 03:40:08 +0400
commit4d70748723163a5330b3f46078c88a3e54eefc57 (patch)
tree73fa75f22c84cf3a7b23ab442bb914108fce271a /t/clean_polylines.t
parent721b61e798623178a8ce3c30894e1640979c83f6 (diff)
Make tests happy about the new Boost::Geometry::Utils working with integers
Diffstat (limited to 't/clean_polylines.t')
-rw-r--r--t/clean_polylines.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/clean_polylines.t b/t/clean_polylines.t
index bc7d864e6..064b7bd3a 100644
--- a/t/clean_polylines.t
+++ b/t/clean_polylines.t
@@ -32,8 +32,9 @@ use Slic3r;
my $polyline = Slic3r::Polyline->new([
[0,0],[0.5,0.5],[1,0],[1.25,-0.25],[1.5,.5],
]);
- $polyline->simplify(0.25);
- is_deeply $polyline, [ [0, 0], [0.5, 0.5], [1.25, -0.25], [1.5, 0.5] ], 'Douglas-Peucker';
+ $polyline->scale(100);
+ $polyline->simplify(25);
+ is_deeply $polyline, [ [0, 0], [50, 50], [125, -25], [150, 50] ], 'Douglas-Peucker';
}
{