Im trying to make procedurally generated skyscrapers, so the code takes N number of Vector3 for the building shape and generates the mesh upwards. No problem so far, but im not quite sure how to generate the roof . While i think the easiest way would be to add a vertice at the center of the shape and generate all triangles from there, i think that would complicate things when it comes to generating the UV for the textures (or am i wrong?)
So how should i go about to find and create the vertices on the roof? the shape of the image is somewhat simple, but i want to also use concave shapes

