Make all lines on the same plane

Check this thread, especially the last post.