Thanks a lot! To clarify, I want to determine the maximum distance in z (and only in z) between the curve and the surface. So I'm not interested in the lowest or highest point of either the surface or the curve. If I were to draw lines from the curve to the surface in z direction, I would try to...