Пример #1
0
 private void ChangeCutterDiameter(float newVal)
 {
     if (diameter != newVal)
     {
         primitive = new SpherePrimitive(device, newVal, 10);
         diameter  = newVal;
     }
 }
Пример #2
0
 public Cutter(GraphicsDevice graphics, float diameter)
 {
     primitive     = new SpherePrimitive(graphics, diameter, 10);
     this.diameter = diameter;
     device        = graphics;
 }