Finally! after so much debugging, looking a whole list of just points, deducing how they connected and where it does a wrong turn, from order of intersections to traversion of the polygons mergings and multiple of them intersecting I got the perfect algorithm working.
I can still fail if the numbers are very very very BUT VERY SPECIFIC, like floating point precission can be a trouble for all this, but I haven't found any in my testings so far, I have yet to try holes with holes.
The way holes with holes is gonna work mainly is that you don't get to define holes in the holes, but you have to use 2 holes so that when put together (merging/overlapping) they create a gap in it.
I was doing the order wrong and it would have led to more complication to this algorithm but ultimately, it works, and I'm happy about it ^^
Finally I can continue documenting x3 and this feature will come out in the version 1.1.0 of Undermaker (with documentation included), so stay tuned and we'll see how much more is remaining to do of this :3



















0 comments