public static Models.Path LoadPath(string filePath) { var path = new Models.Path(); var sr = new StreamReader(filePath); using (sr) { string line; while ((line = sr.ReadLine()) != null) { Points3D point = Points3D.Parse(line); path.AddPoint(point); } } return(path); }