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

[CURA-9425] Distance to moved point should be w.r.t. segment. #1690

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

rburema
Copy link
Member

@rburema rburema commented Jul 8, 2022

Before this fix, the distance to the intersection was measured by the distance to the line going through some points A and C on the poly-like in question. However, only the line-segment is of course on the poly-like, anything 'just' on the line could be very far indeed from the intended location. Luckily there was already a method that checks this, so it was just a question of swapping out the line method for the line-segment method.

(As an aside: Note the parameter-ordering -- that has to be different between the two methods for some reason, since the method now used has the point in the middle instead of at the beginning?)

Before this fix, the distance to the intersection was measured by the distance to the _line_ goint through some points A and C on the poly-like in question. However, only the _line-segment_ is of course on the poly-like, anything 'just' on the line could be very far indeed from the intended location. Luckily there was already a method that checks this, so it was just a question of swapping out the line method for the line-segment method. (As an aside: Note the parameter-ordering -- that has to be different between the two methods for some reason, since the method now used has the point in the middle instead of at the beginning?)

CURA-9425
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 2bfdef9.

♻️ This comment has been updated with latest results.

@jellespijker jellespijker merged commit 0bb0084 into 5.1 Jul 11, 2022
@jellespijker jellespijker deleted the CURA-9425_fix_simplify_spiralize branch July 11, 2022 08:53
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.

2 participants