as a little exercise i tried to patch a basic ear clipping algo that is able to triangulate a simple polygon.
the algorythm interates through a list of 2d points, check each of them if it meets the condition and if the first one in the list meets the condition this point will be deleted in the list, and the loop restarts with the remaining points, until no points are remaining anymore.
the problem i have now, is that each time the loop restarts, this will be done in a new frame within the mainloop. i want this all be done within one frame. no idea how to achieve this. please see the attatched patch (i slowed down the mainloops to make visible what happens)
EarClipper7.vl (160.0 KB)