issues with halfedge mesh