Preserve top support interfaces with synchronized layer gaps (#13939)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-11-09 18:20:07 -03:00
1 parent 868686b307
commit 320f1bb7fc
2 files changed
+178 -2

No files matched your search

+10 -1
View File
@@ -3385,7 +3385,16 @@ void PrintObjectSupportMaterial::trim_support_layers_by_object(
break;
bool is_overlap = is_layers_overlap(support_layer, object_layer);
for (const ExPolygon& expoly : object_layer.lslices) {
// Only relax trimming across the gap to the overhang assigned to this top contact.
const ExPolygons *trim_source = &object_layer.lslices;
ExPolygons trim_continuous;
if (support_layer.layer_type == SupporLayerType::TopContact && i > 0 &&
i >= support_layer.idx_object_layer_above &&
object_layer.bottom_z() > support_layer.print_z + EPSILON) {
trim_continuous = intersection_ex(object_layer.lslices, object.layers()[i - 1]->lslices);
trim_source = &trim_continuous;
}
for (const ExPolygon& expoly : *trim_source) {
// BBS
bool is_sharptail = !intersection_ex({ expoly }, object_layer.sharp_tails).empty();
coordf_t trimming_offset = is_sharptail ? scale_(sharp_tail_xy_gap) :