mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
Prefer starting points that are NOT in overhangs
This commit is contained in:
@@ -156,7 +156,7 @@ sub extrude_loop {
|
|||||||
# find candidate starting points
|
# find candidate starting points
|
||||||
# start looking for concave vertices not being overhangs
|
# start looking for concave vertices not being overhangs
|
||||||
my @concave = $loop->polygon->concave_points;
|
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;
|
@concave;
|
||||||
if (!@candidates) {
|
if (!@candidates) {
|
||||||
# if none, look for any concave vertex
|
# if none, look for any concave vertex
|
||||||
|
|||||||
Reference in New Issue
Block a user