Sweep with data trees

Hello,
I need to create some sweep. I have one tree with 3 branches as sections and another tree with 3 branches as rail. the sections are geometrically correctly positioned. I need each section swept with the relative rail and maintaining the 3 branches as output. Any suggestion?
thanks,
Roy

sweep tree.gh (10.4 KB)

Here’s one way.

sweep tree-b.gh (12.3 KB)

Hi Ethan!
The perfect way to me…thank you!
R.