Added start of mesh generator code.