Changed the mesh generation stuff to smooth out the result a little bit.