mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 02:52:10 +00:00
Correct gap fill width bounds in outer-only and mixed-wall cases (#12057)
This commit is contained in:
@@ -1562,9 +1562,9 @@ void PerimeterGenerator::process_classic()
|
|||||||
} // for each loop of an island
|
} // for each loop of an island
|
||||||
|
|
||||||
// fill gaps
|
// fill gaps
|
||||||
if (! gaps.empty()) {
|
if (! gaps.empty()) { // collapse
|
||||||
// collapse
|
// ORCA: Use the smaller width as the lower bound to avoid overestimating safe overlap
|
||||||
double min = 0.2 * perimeter_width * (1 - INSET_OVERLAP_TOLERANCE);
|
double min = 0.2 * std::min(perimeter_width, ext_perimeter_width) * (1 - INSET_OVERLAP_TOLERANCE);
|
||||||
double max = 2. * perimeter_spacing;
|
double max = 2. * perimeter_spacing;
|
||||||
ExPolygons gaps_ex = diff_ex(
|
ExPolygons gaps_ex = diff_ex(
|
||||||
//FIXME offset2 would be enough and cheaper.
|
//FIXME offset2 would be enough and cheaper.
|
||||||
|
|||||||
Reference in New Issue
Block a user