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
path: root/lib
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-07-07 21:10:50 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-07-07 21:11:23 +0400
commitc57a88c9436d62f82f0cc96d048f66608aa6b140 (patch)
tree141607717817748ef67fdcebf1cd92033bca7465 /lib
parentf4db7625bc0f53e65b92b433e2a3a0c08aa6ad69 (diff)
start_perimeters_at_non_overhang was still partially enforced
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/GCode.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm
index d4e498a9f..fa61e259b 100644
--- a/lib/Slic3r/GCode.pm
+++ b/lib/Slic3r/GCode.pm
@@ -168,8 +168,9 @@ 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),
- @{$loop->polygon};
+ if ($Slic3r::Config->start_perimeters_at_non_overhang) {
+ @candidates = grep !Boost::Geometry::Utils::point_covered_by_multi_polygon($_, $self->_layer_overhangs), @{$loop->polygon};
+ }
if (!@candidates) {
# if none, all points are valid candidates
@candidates = @{$loop->polygon};