Ok so I figured out that solution has to be converted to ExPolygons to get this information, ref https://sourceforge.net/p/jsclipper/wiki/ExPolygons%20and%20PolyTree%206/. :)
After looking some more at the main demo, it appears to me that the result actually is a polygon with hole and main demo is illustrating this correctly when clicking at solution's points cell. As the solution consists of two polygons, how does the demo know that the second subpolygon is a hole and not an ordinar polygon next to the other one?
After looking some more at the main demo, it appears to me that the result actually is a polygon with hole and main demo is illustrating this correctly when clicking at solution's points cell. Guess I have to interpret the solution differently.
I hoped for a similar demo in C# Clipper where I could just put in custom samples, but it seems to only provide random-generating shapes. Guess I have to figure out how to write a demo myself then. The workaround did it by using offset -0.006 in this specific case, but Im not comfortable using this offset in all similar cases.
I hoped for a similar demo in C# Clipper where I could just put in custom samples, but it seems to only provide random-generating shapes. Guess I have to figure out how to write a demo myself then. I was not able to fix the problem by setting the offset as suggested. Did you verify that in the main demo app?
Incorrect result from edge-case with clip type Difference