Migrate clipper to clipper2 functions for sparse Infill #785

Closed
opened 2026-04-05 16:31:04 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @RF47 on 2/14/2026

Migrate polygon clipping from Clipper to Clipper2 for sparse infill

This PR updates the sparse infill implementation to use Clipper2 polygon clipping and offsetting functions instead of the legacy Clipper (Clipper1) utilities. The goal is to improve performance and robustness during sparse infill generation by leveraging the newer, faster Clipper2.

🔧 What’s being replaced

The following legacy functions used throughout sparse infill patterns have been replaced with their Clipper2-based counterparts:

offset → offset_2

offset_ex → offset_ex_2

intersection_pl → intersection_pl_2

union_ex → union_ex_2

shrink → shrink_2

union_pt_chained_outside_in → union_pt_chained_outside_in_2

The purpose of this PR is to improve performance and expand the use of Clipper2, which is currently only used in the multiline function.
No functional changes are introduced.

*Originally created by @RF47 on 2/14/2026* # Migrate polygon clipping from Clipper to Clipper2 for sparse infill This PR updates the sparse infill implementation to use Clipper2 polygon clipping and offsetting functions instead of the legacy Clipper (Clipper1) utilities. The goal is to improve performance and robustness during sparse infill generation by leveraging the newer, faster Clipper2. 🔧 What’s being replaced The following legacy functions used throughout sparse infill patterns have been replaced with their Clipper2-based counterparts: offset → offset_2 offset_ex → offset_ex_2 intersection_pl → intersection_pl_2 union_ex → union_ex_2 shrink → shrink_2 union_pt_chained_outside_in → union_pt_chained_outside_in_2 The purpose of this PR is to improve performance and expand the use of Clipper2, which is currently only used in the multiline function. No functional changes are introduced.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#785