FIX: misreport warning message caused by float region when slicing relief

Unnecessary warning messages are called when slicing reliefs, because some small overhangs with only one gap layer are set as SHARPTAIL.

jira: none
Change-Id: I9abcebbcfa41d75e32f86efa64ac3bb8848247d7
This commit is contained in:
jiaxi.chen 2024-12-19 15:11:50 +08:00 committed by lane.wei
parent 0f0f677379
commit 0f98abde37
1 changed files with 4 additions and 1 deletions

View File

@ -825,7 +825,10 @@ void TreeSupport::detect_overhangs(bool check_support_necessity/* = false*/)
if (!overlaps(offset_ex(expoly, 0.1 * extrusion_width_scaled), lower_polys)) {
is_sharp_tail = !offset_ex(expoly, -0.1 * extrusion_width_scaled).empty();
}
if (is_sharp_tail && lower_layer->lower_layer) {
if (overlaps(offset_ex(expoly, 0.1 * extrusion_width_scaled), lower_layer->lower_layer->lslices_extrudable))
is_sharp_tail = false;
}
if (is_sharp_tail) {
layer->sharp_tails.push_back(expoly);
layer->sharp_tails_height.push_back(0);