Create curves on different surfaces at the same time

Hello,
I want to create some interpolated curves through a set of points on a surface at a time. Because I’m working on 3D Printing, after slicing there will be many surfaces in the same model. So I think, maybe I could create curves on all surfaces at the same time during the change of data structure.
In this example I have two surfaces {0}{1}, two groups N and M {0,N}{1,M} on surface {0},{1} and every group have two points which will be contacted on surface.
My questions are, why these points aren’t able to create right curve on their surface, e.g. points group {0, N} just on surface {0}? How can “Gh/curve on surface” find the right surface for these points automatically? If need I to do some definition for these surface or points?
I would be grateful for your good ideas and tips.
Thank you very much.
curve on different Surface.3dm (91.5 KB)
curve on different surface.gh (59.6 KB)


Julius.gh (25.5 KB)

hi Mahdiyar,
Thank you for your great answer. It’s wonderful for me. And I also have another idea for this question.
Maybe it would be better work with more than two surfaces.


Julius.gh (32.1 KB)