One more fix in overhang starting point detection

This commit is contained in:
Alessandro Ranellucci 2013-07-05 17:08:26 +02:00
parent df4612a209
commit b3b2a1e891

View file

@ -163,7 +163,7 @@ sub extrude_loop {
@candidates = @concave;
if (!@candidates) {
# if none, look for any non-overhang vertex
@candidates = grep Boost::Geometry::Utils::point_covered_by_multi_polygon($_, $self->_layer_overhangs),
@candidates = grep !Boost::Geometry::Utils::point_covered_by_multi_polygon($_, $self->_layer_overhangs),
@{$loop->polygon};
if (!@candidates) {
# if none, all points are valid candidates