It would be helpful to see the full code for the MeshGenerator class. Great writeup, I'm learning a bunch.