I currently have a layer which is composed of different areas. I want to extract the coordinates of the vertices of the shape to CSV in QGIS, which I successfully am able to do by using extract vertices. What I also wanted to do is to know which vertices belong to which "sub-area", as exemplified in the picture below by the numbers, so I'd be able to indicate in the CSV which point belongs to "1", which ones to "2" and so on.
I tried using "multiparts to singleparts". My logic was if I could divide the shape in different parts I could use "extract vertices" on each one of them and retrieve each area points. However, the shape returned remains the same, as one. So I'm not sure what I can do here. Does anyone have an idea?