In heightmapMesher: rewrote the whole thing, using a simpler method for meshing the heightmap