Added method to generate irregular grid