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); }
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, 100, 100); //Start over this.Refresh(); }