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); }
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; }
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); }