private void ChangeCutterDiameter(float newVal) { if (diameter != newVal) { primitive = new SpherePrimitive(device, newVal, 10); diameter = newVal; } }
public Cutter(GraphicsDevice graphics, float diameter) { primitive = new SpherePrimitive(graphics, diameter, 10); this.diameter = diameter; device = graphics; }