Working on greedy meshing