From df4612a209dc172b629166d8565f83d609638372 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 5 Jul 2013 17:00:14 +0200 Subject: [PATCH] Prefer starting points that are NOT in overhangs --- lib/Slic3r/GCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 2d6e27f8..833fe18c 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -156,7 +156,7 @@ sub extrude_loop { # find candidate starting points # start looking for concave vertices not being overhangs my @concave = $loop->polygon->concave_points; - my @candidates = grep Boost::Geometry::Utils::point_covered_by_multi_polygon($_, $self->_layer_overhangs), + my @candidates = grep !Boost::Geometry::Utils::point_covered_by_multi_polygon($_, $self->_layer_overhangs), @concave; if (!@candidates) { # if none, look for any concave vertex