Joining Brep along a divided curve

Hi guys,

I am trying to extrude a section profile along 3D polyline. But curves in this polyline created by many straight lines, this cause an issue. please see the picture. Is there any way to join this separate parts?
I attached my files.
I would be grateful if you could help me.

Joining Brep.3dm (232.0 KB) Joining-Brep.gh (149.9 KB)

Like this?


Joining-Brep_re.gh (144.3 KB)

1 Like

Yes, this solves my problem. Thank you very much.