basic halfedge construction

ported from plankton
non-manifold vertices neither caught nor handled (beware!)