FIX: sharp tail miss detection

jira: STUDIO-7973
Change-Id: I76b0dc56fe6cf44bacad4c35874695efee29c2f9
(cherry picked from commit 3fe1728f40e2a09340b061681895e4691bd1a8f7)
(cherry picked from commit 7665aeb69ce53d7f9e1c50857b49985cd6912534)
This commit is contained in:
Arthur 2024-12-06 20:36:04 +08:00 committed by Noisyfox
parent ee1bd704ef
commit ed9ba7dcb7

View File

@ -2853,7 +2853,7 @@ void TreeSupport::drop_nodes()
}
}
auto next_collision = get_collision(0, obj_layer_nr_next);
const bool to_buildplate = !is_inside_ex(next_collision, next_layer_vertex);
const bool to_buildplate = !is_inside_ex(m_ts_data->m_layer_outlines[obj_layer_nr_next], next_layer_vertex);
SupportNode * next_node = m_ts_data->create_node(next_layer_vertex, node.distance_to_top + 1, obj_layer_nr_next, node.support_roof_layers_below - 1, to_buildplate, p_node,
print_z_next, height_next);
// don't increase radius if next node will collide partially with the object (STUDIO-7883)