-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Use robust-predicates in signed area #111
Conversation
👍 this is quite incredible, also there's almost no performance drop: martinez@master
martinez@use-robust-predicates
|
Hey @rowanwins ! Hm, now that is weird: To avoid shooting myself in the foot with further changes, I was trying to setup active test cases for old GitHub issues (as a test for #116). I thought I'd start with some of this PR, but for some reason, I have trouble reproducing them. I'm on commit 245c8d4, and my I hope I'm doing something wrong :(, but the codepen seems to be running 0.6.0 and also still looks wonky. Or are these result somehow machine dependent? |
Hey @bluenote10 I was just using the test site to run my visual checks
The demo site compiles directly from the Do you get different results using that approach? |
Indeed that works! Is there anything different with this approach in terms of e.g. input data preprocessing? If it wasn't for the codepen, I would have concluded that it is a difference browser vs nodejs. I'm not 100% sure the codepen includes the change though (I should mention that I'm not a JS programmer, so I'm not good at verifying these things). |
Hmmm that's very strange, I just looked at the codepen and it looks to be setup correctly, I'll have to take a deeper look later... |
Yeah, quite mysterious. I did a few more checks. I've added a console.log(`${p0[0]}, ${p0[1]}, ${p1[0]}, ${p1[1]}, ${p2[0]}, ${p2[1]} => ${res}`); in Unless |
Hmm ok so using node I am getting different results than what I'd expect for that codepen.... (eg it's wrong :( ) |
Hey @w8r
I thought I'd take a look at using the
robust-predicates
lib in calculating the signed area to see if that would make any difference to any of the bugsSo far
Fixes
Doesn't fix