public static SplineSaveList FromSplineList(List <Spline> splines)
        {
            SplineSaveList ssl = new SplineSaveList();

            for (int i = 0; i < splines.Count; i++)
            {
                ssl.Splines.Add(SplineSave.FromSpline(splines[i]));
            }

            return(ssl);
        }
示例#2
0
        public static SplineSave FromSpline(Spline spline)
        {
            SplineSave toReturn = new SplineSave();

            toReturn.Name = spline.Name;
            
            for (int i = 0; i < spline.Count; i++)
            {
                toReturn.Points.Add(
                    SplinePointSave.FromSplinePoint(spline[i]));
            }

            toReturn.Visible = spline.Visible;

            return toReturn;
        }
示例#3
0
        public static SplineSave FromSpline(Spline spline)
        {
            SplineSave toReturn = new SplineSave();

            toReturn.Name = spline.Name;

            for (int i = 0; i < spline.Count; i++)
            {
                toReturn.Points.Add(
                    SplinePointSave.FromSplinePoint(spline[i]));
            }

            toReturn.Visible = spline.Visible;

            return(toReturn);
        }