I am newbie in geonodes and, after some googling, I still do not know how to find answer to my question.
My data: Mesh, made of vertices only. Each vertex is assigned to Vertex Group, therefore vertices of the mesh can be divided to separate subsets. (Example on pictures: I have mesh made of vertices, vertex_group_1 includes upper circle of vertices, vertex_group_2 includes lower circle of vertices)
My goal: to make curve from vertices from the same Vertex Group for each(!) Vertex Group and, as a result, to have a set of curves. If there were n Vertex Groups, I expect n curves as a result. (Example on pictures: as a result I want to have two circle-shaped curves, upper and lower, not a spiral!)
Expected solution: GeoNode "Points to Curves" is supposed to make what I want, as the documentation says "All points with the same Group ID value will be joined in the same curve".
Question: How can I convert my Vertex Group information from mesh to Group Id for PointCloud? I can convert my mesh to point cloud with "Mesh to Points", what is next?
Another expected solution: My mesh is the result of my own script, so I can also make a Point Cloud from it in my script too (I hope it is easy). BUT how should I add "Group Id" to it? Should it be a custom attribute with "group id" name? And how the "Points to Curves" geonode will derive this information, will it derive it automatically when I plug my point cloud geometry to "point" attribute?