FIX: apply xy_expansion after support blocker

jira: STUDIO-9040
Change-Id: I30e09a67047f651a547082bff737524aba940f19
(cherry picked from commit 5e476a1385286246a312b76bdaa836f18715b523)
This commit is contained in:
Arthur 2024-12-02 15:56:10 +08:00 committed by Noisyfox
parent 9e1b856e99
commit 35157c9421

View File

@ -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
// propagating these contact surfaces downwards.
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.
@ -1509,6 +1508,8 @@ static inline ExPolygons detect_overhangs(
if (diff_polygons.empty() || offset(diff_polygons, -0.1 * fw).empty())
continue;
if (xy_expansion != 0) { diff_polygons = expand(diff_polygons, xy_expansion, SUPPORT_SURFACES_OFFSET_PARAMETERS); }
polygons_append(overhang_polygons, diff_polygons);
} // for each layer.region
}