Wrap lines to surface and keep original line lengths

Hello,

I would like to to wrap a configuration of lines from a 2D plane onto a sphere and keep the original lengths of the lines after being wrapped. See the attached figure for illustration. Could anyone help me with creating a script in Grasshopper that does this?

2 Likes