public void topView() { TheCube = (ThreeDObject)((ICloneable)TheCubeOriginal).Clone(); // recopy original object //TheCube.SortPolygonsInZOrder(); TheCube.RotateAtX(TheCube.GetCenter(), AngleCount); AngleCount += 20; Invalidate(); }
private void button1_Click(object sender, System.EventArgs e) { TheCube = (ThreeDObject)((ICloneable)TheCubeOriginal).Clone(); // recopy original object TheCube.SortPolygonsInZOrder(); TheCube.RotateAtX(TheCube.GetCenter(), AngleCount); AngleCount += 1; Invalidate(); }