diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2021-05-05 13:16:40 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-05-05 13:16:47 +0300 |
commit | 7d4b3f29923839a0fc3033ef089e6eff5f5fa4a3 (patch) | |
tree | e253b12f70cb62775a44b23ea04d8a4a1630b67d /src/libslic3r/BridgeDetector.cpp | |
parent | cc68a292d1718e863a6c27f62c0a93db092b547d (diff) |
Fix of safety_offset() after ClipperUtils refactoring.
Fixes Solid infill where there should be none #6482
Also the safety offsetting was revised to be enabled only where needed,
the "do safety offset" is now easy to discover by
a new ApplySafetyOffset::Yes enum, and safety offset over union, which
is better done by offset() / offset_ex() has been replaced with
new union_safety_offset() / union_safety_offset_ex() functions, which
better convey their meaning and which could be better optimized than
union() with the safety offset applied.
Diffstat (limited to 'src/libslic3r/BridgeDetector.cpp')
-rw-r--r-- | src/libslic3r/BridgeDetector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libslic3r/BridgeDetector.cpp b/src/libslic3r/BridgeDetector.cpp index cd90a1f03..03d671db4 100644 --- a/src/libslic3r/BridgeDetector.cpp +++ b/src/libslic3r/BridgeDetector.cpp @@ -58,7 +58,7 @@ void BridgeDetector::initialize() // detect anchors as intersection between our bridge expolygon and the lower slices // safety offset required to avoid Clipper from detecting empty intersection while Boost actually found some edges - this->_anchor_regions = intersection_ex(grown, to_polygons(this->lower_slices), true); + this->_anchor_regions = intersection_ex(grown, union_safety_offset(this->lower_slices)); /* if (0) { |