prepairing for Greedy Meshing