public override void Draw(IDrawDevice device) { if (this.batch == null) { this.GenerateGeometry(); } device.AddBatch(this.batch); }