Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: Inner Outer Inner wall ordering mode failed to reorder in certain edge cases with arachne #7134

Conversation

igiannakas
Copy link
Contributor

@igiannakas igiannakas commented Oct 16, 2024

Description

The proximity search algorithm for IOI was incorrectly using both line width and line spacing to identify proximity. As spacing already contains the line width, that was resulting in the search radius being larger than needed, incorrectly attaching perimeters to neighbouring islands.

This PR fixes this issue by using the correct spacing thresholds for the proximity search for IOI, expanded by 3% to account for any math rounding issues.

Screenshots/Recordings/Graphs

Before
The middle bridge was incorrectly "attached" to the previous island due to proximity calculation being tripped up due to the artificially increased overlap.
image

After:
Correctly sequenced perimeters as per IOI
image

@igiannakas igiannakas changed the title Bug fix: Inner Outer Inner failed to reorder in certain edge cases Bug fix: Inner Outer Inner wall ordering mode failed to reorder in certain edge cases with arachne Oct 16, 2024
@TomKamin1
Copy link

Hi! I am the edge case, and the problem is completely solved. Here's a before and after of how the problem looked on the part.
image
IMG_1970

@igiannakas
Copy link
Contributor Author

@SoftFever, any chance we can sneak that in 2.2? 😀😀

@igiannakas
Copy link
Contributor Author

Upon further investigation, the threshold expansion was not the problem, but rather I was incorrectly using both line width and line spacing to identify proximity.

As spacing already contains the line width, that was resulting in the search radius being larger than needed, incorrectly attaching perimeters to neighbouring islands.

This PR now fixes this issue by using the correct spacing thresholds for the proximity search for IOI, expanded by 3% to account for any math rounding issues.

@SoftFever
Copy link
Owner

@SoftFever, any chance we can sneak that in 2.2? 😀😀

Sure!

Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thank you

@SoftFever SoftFever merged commit c0ce64c into SoftFever:main Oct 22, 2024
15 checks passed
@igiannakas igiannakas deleted the Bug-fix-Inner-Outer-Inner-failed-to-reorder-in-certain-edge-cases branch October 28, 2024 10:47
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