After (seriously) around 7 hours of trying, I ended up here. See image:
Because the goal is to:
Have a polygon like above. Now the bottom verticles are as how they should be (aligned on Y), but the same should be done with the upper ones, to be aligned on Z. The question is especially for vertex alignment, however, if there are a more efficient solution, I'm open.