Prefer starting points that are NOT in overhangs

xs
Alessandro Ranellucci 2013-07-05 17:00:14 +02:00
parent d074b98aba
commit df4612a209
1 changed files with 1 additions and 1 deletions

View File

@ -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