Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public TS_reinforcement(List <TS_bar> bars, TS_materials.TS_material material) : this()
 {
     Material = material;
     Bars.AddRange(bars);
     CalcProperties();
 }