Generate mesh Issue. how do i fix it?

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly

If you want some more handy small examples of procgen, check out my MakeGeo package.

MakeGeo is presently hosted at these locations:

https://bitbucket.org/kurtdekker/makegeo