Create such a this pattern in grasshopper

I think the “trick” to do this is other than sphere collide (indeed), a bending resistence to the wire.
See this: Folding curve on a surface