Пример #1
0
 public void topView()
 {
     TheCube = (ThreeDObject)((ICloneable)TheCubeOriginal).Clone(); // recopy original object
     //TheCube.SortPolygonsInZOrder();
     TheCube.RotateAtX(TheCube.GetCenter(), AngleCount);
     AngleCount += 20;
     Invalidate();
 }
Пример #2
0
 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();
 }