Invalid polygon triangulation
I am trying to create a progress bar in a custom polygon shape, as seen below. The polygon in blue fills up to indicate the durability of a shield.
However, at certain point configurations, I am getting the following error:
Invalid polygon triangulation - no convex edges found. Your polygon is likely self-intersecting.
Failed point set:
[1]: Reflex
[3]: Reflex
[4]: Reflex
[6]: Reflex
[7]: Reflex
[9]: Reflex
[10]: Reflex
This comes about when the points are set as follows - the y-position between the first set of points (0.04505) is very close to the second set of points (0.045):
If I modulate the y-position of the first set of points, then values about y = 0.0451316 render fine without creating the invalid polygon triangulation error. I can create a hack in my code to clamp y-values to this threshold, but it seems like a bug in the triangulation code?
I uh, I'm working on getting better! got work done today at least, so that's good, I think!
That's good to hear! Quick follow up question, now that I realized that you can do this with polygons, is there any way to create a fill with lines or discs? I'm guessing not because it doesn't look like I can set anything in the editor to that extent? But even if it were possible, would it be less performant than having a line for the meter on top of a line for the background?