private static List <TS_reinforcement> ReadReoGroups(string pathToTheSection) { List <TS_reinforcement> ReoGr = new List <TS_reinforcement>(); List <string> rgsPaths = Directory.GetDirectories(pathToTheSection + r).ToList(); foreach (var path in rgsPaths) { List <TS_bar> Bars = ReadBars(path + b); TS_materials.TS_material mat = ReadMaterial(path); TS_reinforcement Reo = new TS_reinforcement(Bars, mat); Reo.Name = FolderName(path); ReoGr.Add(Reo); } return(ReoGr); }
public static TS_section CreateInitiateSection() { List <TS_point> PointsC0 = new List <TS_point> { new TS_point() }; TS_contour Contour0 = new TS_contour(PointsC0); List <TS_point> PointsV0 = new List <TS_point> { new TS_point() }; TS_void Void0 = new TS_void(PointsV0); Void0.Name = "new Void"; List <TS_void> Voids0 = new List <TS_void>() { Void0 }; TS_part Part0 = new TS_part(new TS_mat_universal(), Contour0, Voids0); Part0.Name = "Part1"; List <TS_part> Parts0 = new List <TS_part>() { Part0 }; TS_bar Bar0 = new TS_bar(new TS_point(), Double.NaN); List <TS_bar> Bars0 = new List <TS_bar>() { Bar0 }; TS_reinforcement Reo0 = new TS_reinforcement(Bars0, new TS_mat_universal()); List <TS_reinforcement> Reos0 = new List <TS_reinforcement>() { Reo0 }; TS_section Section0 = new TS_section(Parts0, Reos0); return(Section0); }