I needed a twisted vertical object for a project and thought I would post the resulting node group here. I’ve been playing with 3.3-alpha but the only V3+ nodes it uses are extrusion and merge by distance. The test image above has a 5-point star and a square.
This group doesn’t slice objects, it builds the shape by rotating instances on a vertical points, then extruding and connecting appropriate edges.
edge-twist.blend (994.6 KB)