working on generateGreedyMesh