simplified half-edge structure