-
Notifications
You must be signed in to change notification settings - Fork 24
Allow compute_intersections supports circular arcs #185
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
Conversation
Could you allow me to commit on your branch? |
OMG! That's the gate? I thought I turned it on as default. Lemme check that! |
I think I've turned that on, please try to commit to this branch. |
I've added some tests. Is it more clear now for you how to add some more? To run the tests, go into the
EDIT: I added some failing tests as well. You implementation seems to only consider "strict" intersections. For the shape self-intersection removal, it needs to also add contact points. I added some tests with |
I did some refactoring and included your functions to determine if a point is on a line and to determine if a point is inside a shape. I hope it's ok for you, let me know otherwise. I added some tests as well. There are still some failing tests for the |
Wow really appreciate your effort on this, last night I've been busy on other higher priority things and didn't have chance to code. I'll check it today if i have spare time for this. |
About the test 67, I saw the failure cause is:
But I think the expected intersection should be just (0,1), right? And for the test 58, I saw:
So I guess you mis-typed the |
I've fixed other failed tests, the 58 and 67 are the only failed tests for
|
When
That's right, element_2 should start with |
For test 67, you changed the expected output, but the previous expected output (no intersection) was the right one. |
oh, ok, I mis-read your reply.. lemme check that one. And I also found another failed test:
I think this one is something I can't figure out why easily |
That's strange. The changes in this pull request shouldn't change the optimization. I'll take care of fixing it. |
Thank you for the update. I removed the code you added in the I launched the pipelines. If they pass, I'll merge the pull request |
Everything's good. Thank you for this contribution. |
Thanks for your effort on helping me and this PR. I'll pick #169 later. |
Per #169 (comment).
I'm not familiar with the test framework. I have no idea how to add proper tests for this. I can show you my attempts with no luck....