diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-09-26 12:52:58 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-09-26 12:52:58 +0400 |
commit | 415d1a51700ff2982d08515e48bfce09d79ae75a (patch) | |
tree | a0668edf045ac4ca6833778c4881d72fc7313e81 /lib/Slic3r/Geometry.pm | |
parent | 0cd10441a1c9f19f3e7a69bcf9843bbab4b6c715 (diff) |
Optimization of travel paths for fills
Diffstat (limited to 'lib/Slic3r/Geometry.pm')
-rw-r--r-- | lib/Slic3r/Geometry.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Slic3r/Geometry.pm b/lib/Slic3r/Geometry.pm index f81e67122..b8a9d4091 100644 --- a/lib/Slic3r/Geometry.pm +++ b/lib/Slic3r/Geometry.pm @@ -124,6 +124,7 @@ sub nearest_point { if (!defined $distance || $d < $distance) { $nearest_point = $p; $distance = $d; + return $p if $distance < epsilon; } } return $nearest_point; |