You can use my z-curve-sweeper below. It works just like a curve-to-mesh but can also take points as a profile to produce lines. You can then mesh-to-curve those lines to perform further curve operations on the resulting lines.
The principle it uses internally is as follows:
… it instances curve points on points and realizes them to create a group of curve points to use as the profile for the curve-to-mesh.
Good luck.