This reverts commit 213a280eef. and propose another solution to deal with edges vs halfedges
213a280eef