-
Notifications
You must be signed in to change notification settings - Fork 32
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
Wrong intersection of line segments #3629
Comments
Yes, this is a bug. It has nothing to do with Here is a plot with Plots. Not sure why your plot is mirrored. I never used the Luxor backend, so maybe there is another issue there. |
Yeah I just looked at the code and was wondering about the max, min section. Luxor has a flipped y axis as it's more for image stuff and I think they start at the top left corner with 0, 0. Wondering why that part was build in a way that this works only when the lines are in that orientation? |
The algorithm was probably derived from an example where it worked. But clearly it does not always work. Conceptually, the correct algorithm is simple: the result is a line segment that ends at two of the four end points of the original line segments. And the result uses the "inner" two points. But to do that programmatically in an efficient way is not totally obvious. |
I have a quick fix in #3630. It will probably take time to get this reviewed and merged. |
#3629 - Fix `intersection` of `LineSegments`
@Wikunia, the fix is now merged to |
I'm currently puzzled by this intersection error.
which produces this image
If I let it run with Float64 I get an empty set which works.
The text was updated successfully, but these errors were encountered: