mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: apply xy_expansion after support blocker
jira: STUDIO-9040 Change-Id: I30e09a67047f651a547082bff737524aba940f19 (cherry picked from commit 5e476a1385286246a312b76bdaa836f18715b523)
This commit is contained in:
@@ -1457,7 +1457,6 @@ static inline ExPolygons detect_overhangs(
|
|||||||
// This is done to increase size of the supporting columns below, as they are calculated by
|
// This is done to increase size of the supporting columns below, as they are calculated by
|
||||||
// propagating these contact surfaces downwards.
|
// propagating these contact surfaces downwards.
|
||||||
diff_polygons = diff(intersection(expand(diff_polygons, lower_layer_offset, SUPPORT_SURFACES_OFFSET_PARAMETERS), layerm_polygons), lower_layer_polygons);
|
diff_polygons = diff(intersection(expand(diff_polygons, lower_layer_offset, SUPPORT_SURFACES_OFFSET_PARAMETERS), layerm_polygons), lower_layer_polygons);
|
||||||
if (xy_expansion != 0) { diff_polygons = expand(diff_polygons, xy_expansion, SUPPORT_SURFACES_OFFSET_PARAMETERS); }
|
|
||||||
}
|
}
|
||||||
//FIXME add user defined filtering here based on minimal area or minimum radius or whatever.
|
//FIXME add user defined filtering here based on minimal area or minimum radius or whatever.
|
||||||
|
|
||||||
@@ -1509,6 +1508,8 @@ static inline ExPolygons detect_overhangs(
|
|||||||
if (diff_polygons.empty() || offset(diff_polygons, -0.1 * fw).empty())
|
if (diff_polygons.empty() || offset(diff_polygons, -0.1 * fw).empty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (xy_expansion != 0) { diff_polygons = expand(diff_polygons, xy_expansion, SUPPORT_SURFACES_OFFSET_PARAMETERS); }
|
||||||
|
|
||||||
polygons_append(overhang_polygons, diff_polygons);
|
polygons_append(overhang_polygons, diff_polygons);
|
||||||
} // for each layer.region
|
} // for each layer.region
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user