Closed michaelkirk closed 1 month ago
Hi!
I haven't look yet but it looks like wrong winding rule is set. By default solver use NonZero and at your example I see that all paths go in the same clockwise direction. You can try EvenOdd rule or change direction to counterclockwise order for the hole.
I will try your example later
You're absolutely right! I just changed it and now all tests are passing.
Hello! I've been testing your library (v1.7.0) against some of the edge cases captured in the JTS test suite and noticed a few failures that seem like errors.
For example:
Input visualized (
a
is blue,b
is red):Expected output:
Actual output is missing the second little square:
I was running these tests in the context of georust/geo. If you'd like to run them yourself, see: https://github.com/georust/geo/compare/mkirk/i-overlay
And run:
cargo test -p jts-test-runner
Here's the complete list of failures:
And the corresponding TestOverlayAA.xml: https://github.com/georust/geo/blob/main/jts-test-runner/resources/testxml/general/TestOverlayAA.xml