Union with PolyPaths64 treats 45° collinear lines differently from 0° #1022
sethhillbrand
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hi Seth. I agree that it would certainly be better if the second clipping operation also returned a single path (instead of 2 paths). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say that we start with the following two polygons:
Both are single-outline polygons. The one on the left has collinear lines at 0° on the bottom of the structure. The one on the right has collinear lines at 45° on the bottom right of the structure.
We run the following code:
The expected output here is that the PolyTree64 will say "Polytree with 1 polygon". Instead, we get:
Only the one on the left correctly merges the interior and exterior. The output looks like this:
The one on the right has output with two overlapping polygons:
I think that both polygons should behave the same way. Ideally, I think that the one on the left is the correct output but I'd love to have them synchronized either way
edit: I should have noted that this is testing using current master f1d4916
Beta Was this translation helpful? Give feedback.
All reactions