Elastik qovushqoq plastinkaning kuchlanish-deformatsion holatini matematik modellashtirish


graphics.DrawLine(myPen, nuqta1, nuqta2)



Yüklə 117,5 Kb.
səhifə9/24
tarix10.05.2023
ölçüsü117,5 Kb.
#110606
1   ...   5   6   7   8   9   10   11   12   ...   24
dep-materiallar-varaq (1)

graphics.DrawLine(myPen, nuqta1, nuqta2);
}


}
public void Grafik()
{
PicBox.Visible = true;
// listBox1.Visible = false;
// StreamReader reader = new StreamReader("d:\\Natija.txt");
graphics = PicBox.CreateGraphics();
graphics.Clear(Color.White);
Pen myPen = new Pen(Color.Black);
//int kp = Convert.ToInt32(text2.Text);
double max_x = MK[0].x, max_y = MK[0].y, min_x = MK[0].x, min_y = MK[0].y, min, max, koef;

for (int i = 1; i < n; i++)
{
if (max_x < MK[i].x) max_x = MK[i].x;
if (min_x > MK[i].x) min_x = MK[i].x;
if (max_y < MK[i].y) max_y = MK[i].y;
if (min_y < MK[i].y) min_y = MK[i].y;
}
if (max_x > max_y) max = max_x;
else max = max_y;
if (min_x < min_y) min = min_x;
else min = min_y;
double k1 = max - min, mkk = PicBox.Width - 100;

float Mkk = (float)mkk +100;

koef = mkk / k1; //mkk Image1 ning o'lchami
myPen.Width = 1;
myPen.Color = Color.Blue;
Brush myBrush = new SolidBrush(myPen.Color);
PointF[] nuqta = new PointF[4];
Font font = new Font(FontFamily.GenericSerif, 10);
float x, y;

int xr = 40, xl = 10, xp = 10, j = 0; ;
for (i =0; i < m; i++)
{
//* if (i % 2 == 0)
{
nuqta[0].X = (float)(MK[MN[i].i - 1].x * koef) + xr;
nuqta[0].Y = Mkk - (float)(MK[MN[i].i - 1].y * koef);
nuqta[1].X = (float)(MK[MN[i].j - 1].x * koef) + xr;
nuqta[1].Y = Mkk - (float)(MK[MN[i].j - 1].y * koef);
nuqta[2].X = (float)(MK[MN[i].k - 1].x * koef) + xr;
nuqta[2].Y = Mkk - (float)(MK[MN[i].k - 1].y * koef);

Yüklə 117,5 Kb.

Dostları ilə paylaş:
1   ...   5   6   7   8   9   10   11   12   ...   24




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin