How do I create a groove that follows a set of lines?

I’m having a hard time visualizing this … a picture would help :slightly_smiling_face: