-
Notifications
You must be signed in to change notification settings - Fork 347
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
Port JTS #448 #206
Port JTS #448 #206
Conversation
It seems unable to compile the TUT code. [ci skip]
|
Adds a ~40% performance penalty in my quick test ( |
A few possibilities come to mind:
So lots of options to try! |
…cumcenter, namely that we have a potential equally-sided right triangle on our hands.
|
@dbaston see if the little pre-filter condition I've added takes some of the pain away |
…cumcenter, namely that we have a potential equally-sided right triangle on our hands.
Yep, performance looks the same as |
|
Pushed to master |
| @@ -421,7 +421,10 @@ class | |||
| Triangle triangle(triEdges[0]->orig().getCoordinate(), | |||
| triEdges[1]->orig().getCoordinate(), triEdges[2]->orig().getCoordinate()); | |||
| Coordinate cc; | |||
| triangle.circumcentre(cc); | |||
| if (triangle.isIsoceles()) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pramsey It looks like this heuristic doesn't work (mea culpa, since it was my suggestion). We should remove it, I think.
| const char* expected = | ||
| "GEOMETRYCOLLECTION EMPTY"; | ||
|
|
||
| runVoronoi(wkt, expected, 100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tolerance here should be much smaller for this test to actually work. Say 0.1, or even 0.
Fix Voronoi polygon generation by adding robust Triangle circumcentreDD