mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 07:11:23 -05:00
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:
2 files changed
+178
-2
No files matched your search
@@ -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) :
|
||||
|
||||
Reference in new issue
Block a user