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>2011-09-26 12:52:58 +0400
committerAlessandro Ranellucci <aar@cpan.org>2011-09-26 12:52:58 +0400
commit415d1a51700ff2982d08515e48bfce09d79ae75a (patch)
treea0668edf045ac4ca6833778c4881d72fc7313e81 /lib/Slic3r/Geometry.pm
parent0cd10441a1c9f19f3e7a69bcf9843bbab4b6c715 (diff)
Optimization of travel paths for fills
Diffstat (limited to 'lib/Slic3r/Geometry.pm')
-rw-r--r--lib/Slic3r/Geometry.pm1
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;