private void Form1_Load(object sender, EventArgs e) { mainCube = new Math3D.Cube(100, 200, 75); drawOrigin = new Point(pictureBox1.Width / 2, pictureBox1.Height / 2); Render(0, 0, 0); }
private void btnReset_Click(object sender, EventArgs e) { tX.Value = 0; tY.Value = 0; tZ.Value = 0; chWires.Checked = true; chFront.Checked = false; chBack.Checked = false; chLeft.Checked = false; chRight.Checked = false; chTop.Checked = false; chBottom.Checked = false; mainCube = new Math3D.Cube(100, 200, 75); //Start over this.Refresh(); }
private void button1_Click(object sender, EventArgs e) { ZmienneGlobalne.x = Convert.ToInt32(textBox1.Text); ZmienneGlobalne.y = Convert.ToInt32(textBox2.Text); ZmienneGlobalne.z = Convert.ToInt32(textBox3.Text); chWires.Checked = true; chFront.Checked = false; chBack.Checked = false; chLeft.Checked = false; chRight.Checked = false; chTop.Checked = false; chBottom.Checked = false; label8.Text = Convert.ToString(ZmienneGlobalne.x * ZmienneGlobalne.y * ZmienneGlobalne.z)+" [ j^3 ]"; label11.Text = Convert.ToString(ZmienneGlobalne.x * ZmienneGlobalne.y)+" [ j^2 ]"; label12.Text = Convert.ToString( (ZmienneGlobalne.x * ZmienneGlobalne.y *2) + (ZmienneGlobalne.x * ZmienneGlobalne.z * 2)+ (ZmienneGlobalne.y * ZmienneGlobalne.x * 2))+" [ j^2 ]"; mainCube = new Math3D.Cube(ZmienneGlobalne.x, ZmienneGlobalne.y, ZmienneGlobalne.z); //Start over this.Refresh(); }
private void FrmRender_Load(object sender, EventArgs e) { mainCube = new Math3D.Cube(100, 200, 75); drawOrigin = new Point(pictureBox1.Width / 2, pictureBox1.Height / 2); }
private void FrmRender_Load(object sender, EventArgs e) { ZmienneGlobalne.x = Convert.ToInt32(textBox1.Text); ZmienneGlobalne.y = Convert.ToInt32(textBox2.Text); ZmienneGlobalne.z = Convert.ToInt32(textBox3.Text); label8.Text = Convert.ToString(ZmienneGlobalne.x * ZmienneGlobalne.y * ZmienneGlobalne.z) + " [ j^3 ]"; label11.Text = Convert.ToString(ZmienneGlobalne.x * ZmienneGlobalne.y) + " [ j^2 ]"; label12.Text = Convert.ToString((ZmienneGlobalne.x * ZmienneGlobalne.y * 2) + (ZmienneGlobalne.x * ZmienneGlobalne.z * 2) + (ZmienneGlobalne.y * ZmienneGlobalne.x * 2)) + " [ j^2 ]"; mainCube = new Math3D.Cube(ZmienneGlobalne.x,ZmienneGlobalne.y,ZmienneGlobalne.z); drawOrigin = new Point(pictureBox1.Width / 2, pictureBox1.Height / 2); }
private void FrmRender_Load(object sender, EventArgs e) { if(_depth!=0) mainCube = new Math3D.Cube(_width, _heigth, _depth);//параллелепипед else mainCube = new Math3D.Cube(_width, _width, _width);//куб mainCube.DrawWires = mainCube.FillFront = mainCube.FillLeft = mainCube.FillBack = mainCube.FillBottom = mainCube.FillRight = mainCube.FillTop = true; drawOrigin = new Point(pictureBox1.Width / 2, pictureBox1.Height / 2); }