Abstracted the meshing strategy for different types of meshers.