Esempio n. 1
0
        private string writeResults(RectangleCells dataCells)
        {
            string result = "";

            result += "Степень матрицы - " + dataCells.GetColumnsNumber(); result += Environment.NewLine;
            result += "Количество углов - " + dataCells.GetAnglesN(); result += Environment.NewLine;
            result += "Обьём тела - " + FreeClass.body.GetV();; result += Environment.NewLine;
            result += "Обьём структуры - " + dataCells.GetCellsV(); result += Environment.NewLine;
            result += "Часть от объёма - " + (dataCells.GetCellsV() * 100) / FreeClass.body.GetV(); result += Environment.NewLine;
            result += "Площадь структуры - " + dataCells.GetSCells(); result += Environment.NewLine;
            result += "Площадь 1 ячейки - " + dataCells.GetS1(); result += Environment.NewLine;
            result += "Ширина 1 ячейки - " + dataCells.GetCellsWidth(); result += Environment.NewLine;
            result += "Длинна 1 ячейки - " + dataCells.GetCellsLenght(); result += Environment.NewLine;
            //result += "Локаль - " + dataCells.GetLocal(); result += Environment.NewLine;
            //result += "Радиус вписаной в локаль окружности - " + dataCells.GetRadius(); result += Environment.NewLine;
            //result += "Сторона вписанного в окружность многоулольника - " + dataCells.GetSide(); result += Environment.NewLine;
            result += "K = " + dataCells.GetK(); result += Environment.NewLine;
            result += "Максимальное соотношение - " + AbstractRelationAngle.maxCoef; result += Environment.NewLine;
            result += "Доступность построения - " + dataCells.isAvailable(); result += Environment.NewLine;
            return(result);
        }
 public void SetCells(RectangleCells cells)
 {
     cellObj = cells;
 }