Folds at angles that are not perpendicular to the original fold

I am trying to create a beak like pop up in grasshopper which can fold. I have problems with the folds at an angle, as the ends of the surface end up overlapping. Is there a way to solve this? Preferably using the construct plane and mirror components in grasshopper.

Always supply your code, else I doubt anyone will help you with this.