public Cube() { // up triangles[0] = new Triangle3D(a, b, c); triangles[1] = new Triangle3D(a, c, d); // bottom triangles[2] = new Triangle3D(e, h, f); triangles[3] = new Triangle3D(f, h, g); // front triangles[4] = new Triangle3D(d, c, g); triangles[5] = new Triangle3D(d, g, h); // back triangles[6] = new Triangle3D(a, e, b); triangles[7] = new Triangle3D(b, e, f); // right triangles[8] = new Triangle3D(b, f, c); triangles[9] = new Triangle3D(c, f, g); // left triangles[10] = new Triangle3D(a, d, h); triangles[11] = new Triangle3D(a, h, e); }
private void Form1_Load(object sender, EventArgs e) { triangle3D = CreateTriangle3D(); cube = new Cube(); }