Skip to content

External bridge improvements ported from Prusa Slicer#9659

Open
lin-xianming wants to merge 2 commits intobambulab:masterfrom
lin-xianming:patch/external-bridge-fixes
Open

External bridge improvements ported from Prusa Slicer#9659
lin-xianming wants to merge 2 commits intobambulab:masterfrom
lin-xianming:patch/external-bridge-fixes

Conversation

@lin-xianming
Copy link
Contributor

This patch merges adjacent external bridge polygons before calculating the angle.

Currently there is a problem where detect_bridging_direction is called with non-empty floating_edges even when the bridge area has no floating edges, such as in the picture below. By merging the bridges first then taking the closing of the merged bridge polygons this problem is fixed.

image

SachCZ and others added 2 commits February 10, 2026 20:18
Before, partial bridges were calculated. For each of these an angle
has been choosen and after that all the bridges have been merged.
Becouse of the merge a single angle had to be picked.
The first angle that the algorithm has stumbled upon has been picked,
resulting in sub-optimal bridging directions.

Now the partial bridges are calcualted, then merged and then
the angle is decided over the whole merged bridge.
This approach at least ensures that the orientation is the best possible
for the merged bridge.
@lin-xianming lin-xianming force-pushed the patch/external-bridge-fixes branch from ba827d0 to 4fc3bd2 Compare February 11, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants