Hello there!
I'm having a tough time deciding on partition methods, I'm having this issue with watershed, where a staircase going up back and forth generates an overlapping contour which fails to triangulate.
Red circles are the overlapping areas, and you can see the polygon mesh (dark blue) is all sorts of borked due to failed triangulation, outlines are the raw and simplified contours.
I decided to test the layer partition method which claims to fix watershed's edge cases but I ended up with this hole, which contour simplification failed to deal with, do I have a bug in my contour simplification code maybe? Because layers does say "relies on the triangulation code to cope with holes"
Only monotone generated no edge cases in my game's maps, I think my strategy will be, per tile, trying watershed, if triangulation fails, try layer, if triangulation fails, try monotone, if triangulation fails, give up on game development and open a mechanic car shop. Is that a reasonable strategy?
Really appreciate the work, the library is amazing, and I look forward to eventually be contributing!
Thanks a lot! Cheers!