Euler operation based on half  edge data structure