示例#1
0
 //поворот
 private void button3_Click(object sender, EventArgs e)
 {
     if (revertId == 0)
     {
         figure.reflectX();
         g.Clear(Color.White);
         if (clipping == 0)
         {
             figure.Show(g, projection);
         }
         else if (clipping == Clipping.ZBuffer)
         {
             show_z_buff();
         }
     }
     else if (revertId == 1)
     {
         figure.reflectY();
         g.Clear(Color.White);
         if (clipping == 0)
         {
             figure.Show(g, projection);
         }
         else if (clipping == Clipping.ZBuffer)
         {
             show_z_buff();
         }
     }
     else if (revertId == 2)
     {
         figure.reflectZ();
         g.Clear(Color.White);
         if (clipping == 0)
         {
             figure.Show(g, projection);
         }
         else if (clipping == Clipping.ZBuffer)
         {
             show_z_buff();
         }
     }
 }
示例#2
0
 //REVERT FUNCTIONS
 private void button3_Click(object sender, EventArgs e)
 {
     if (revertId == 0)
     {
         figure.reflectX();
         g.Clear(Color.White);
         figure.Show(g, projection);
     }
     else if (revertId == 1)
     {
         figure.reflectY();
         g.Clear(Color.White);
         figure.Show(g, projection);
     }
     else if (revertId == 2)
     {
         figure.reflectZ();
         g.Clear(Color.White);
         figure.Show(g, projection);
     }
 }