public TS_part(TS_materials.TS_material material, TS_contour contour, List <TS_void> voids) { Material = material; Voids = new ObservableCollectionEx <TS_void>(); Contour = contour; Voids.AddRange(voids); GeometryComponents = null; CalcProperties(); }
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); }
private static List <TS_part> ReadParts(string pathToTheSection) { List <TS_part> Parts = new List <TS_part>(); List <string> partsPaths = Directory.GetDirectories(pathToTheSection + p).ToList(); foreach (var path in partsPaths) { TS_contour cont = ReadContour(path); TS_materials.TS_material mat = ReadMaterial(path); List <TS_void> voids = ReadVoids(path); TS_part Part = new TS_part(mat, cont, voids); Part.Name = FolderName(path); Parts.Add(Part); } return(Parts); }
public TS_reinforcement(List <TS_bar> bars, TS_materials.TS_material material) : this() { Material = material; Bars.AddRange(bars); CalcProperties(); }