GH find curve intersections on z-axis

Hello, I´m trying to find intersections of multiple curves on z-axis. I´ve multiple curves on x-axis and multiple curves on y-axis, and need to find their intersections on z-axis. Any ideas?

forgot to mention that the curves are not on same level on z-axis. Basically I´m trying to draw wires between supporting frames and beams that are hanging from the frames. :smiley:

An image or model you can share would be really helpful.

thx, but I solved it internally with help of colleague. :+1: