Connecting Lines in 3D space - C#