I have a polygon in closed (ends in the starting vertex) and simple (no holes inside) form, I'm trying to think of an algorithm that draws lines between vertices such that these conditions are met:
- The two sides of the line should have balanced number of vertices (at most 1 more vertex on one side is okay)
- When lines join each other they have to make up either an angle of 90 or 135 degrees.
Here's an example image, as you can see the blue lines are drawn such that the above conditions are met:
