diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-04-09 13:04:32 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-04-09 13:04:32 +0400 |
commit | 5bfe19a8b9d10fea39532c458de79ddf9b2967a0 (patch) | |
tree | 2c6350bf5898a949e7cd0507e03e2a4bdb816a13 /t/polyclip.t | |
parent | a800b97fddd7299460e819738f5f1390f5da0ea6 (diff) |
Huge speed Boost (pun intended). Also fixes a problem where infill was escaping perimeters sometimes (#305).
Diffstat (limited to 't/polyclip.t')
-rw-r--r-- | t/polyclip.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/polyclip.t b/t/polyclip.t index 12352bf4e..285ef45be 100644 --- a/t/polyclip.t +++ b/t/polyclip.t @@ -140,12 +140,12 @@ is_deeply $intersection, [ [12, 12], [18, 16] ], 'internal lines are preserved'; is is_counter_clockwise($small_circle), 0, "hole is clockwise"; my $expolygon = Slic3r::ExPolygon->new($large_circle, $small_circle); - $line = Slic3r::Line->new([152.741724,288.086671142818], [152.741724,34.166466971035]); + $line = Slic3r::Line->new([152.742,288.086671142818], [152.742,34.166466971035]); my $intersections = $expolygon->clip_line($line); is_deeply $intersections, [ - [ [152.741724, 288.086671142818], [152.741724, 215.178806915206], ], - [ [152.741724, 108.087543109156], [152.741724, 35.166466971035] ], + [ [152.742, 288.087], [152.742, 215.179], ], + [ [152.742, 108.088], [152.742, 35.1665] ], ], 'line is clipped to square with hole'; } |