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

Change segment overhanging calculation formula #2144

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

wawanbreton
Copy link
Contributor

CURA-12078

Instead of naively checking whether the start and end point of the segment are in the overhang area, calculate the intersection of the segment with the overhang area, and see if the length of the intersection is a significant enough part of the origin segment. This filters out some segments that partially overhang and are not really expected to be treated as overhanging.

The behavior is technically a bit less correct than the former one, but tends to more homogeneity in the speeds so it may be preferable overall.

This is quite experimental, but did perform very well on all the models I tested. Please test it more extensively, there may be edge cases that I overlooked.

wawanbreton and others added 3 commits October 7, 2024 14:15
CURA-12078
Instead of naively checking whether the start and end point of the
segment are in the overhang area, calculate the intersection of the
segment with the overhang area, and see if the length of the
intersection is a significant enough part of the origin segment. This
filters out some segments that partially overhang and are not really
expected to be treated as overhanging.
@wawanbreton wawanbreton changed the base branch from main to 5.9 October 8, 2024 11:23
Copy link
Member

@rburema rburema left a comment

Choose a reason for hiding this comment

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

Made a PR to adjust the description of Overhanging Wall Angle to clarify the new behaviour here: Ultimaker/Cura#19725

@HellAholic HellAholic merged commit 5716bf0 into 5.9 Oct 10, 2024
26 checks passed
@HellAholic HellAholic deleted the CURA-12078_inconsistent-wall-speed-besides-overhang branch October 10, 2024 07:49
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