Beispiel #1
0
        public static Path LoadPath(string filePath)
        {
            Path path = new Path();

            using (StreamReader sr = new StreamReader(filePath))
            {
                while (sr.EndOfStream == false)
                {
                    string  PointTxt  = sr.ReadLine();
                    Point3D nextPoint = Point3D.Parse(PointTxt);
                    path.AddPoints(nextPoint);
                }
            }
            return(path);
        }