Join planar lines with Curve.Join

You can try this also: