I'm trying to create a geometry node based generator that gives me control over the side profile of a column-like object. I tried to do this with a custom curve window (which can also be accessed by beveling an edge with a custom profile), but I don't know how to adjust the general shape (for example, if I want a square column with 4 vertices, 12 for a circular one). Also, I wanted to control the vertical number of edges so that I can easily create multiple resolutions of this column (so, for example, 20 edges create a smoother side profile than, say, 10 edges)
I have attached an image showing an example of a desired result. Blue shows the side profile. In this example, my general shape is 4 because it is square and the vertical edges are 111.
If my wishes are possible, could someone explain to me how to achieve the desired geometry node setting?