Optimise polygon mesh.