I am starting to use OpenMesh to go through meshes which may have wholes and am wondering what is the good way to actually retrieve the vertices associated with each edge.
For half-edges, there are the methods opposite_he_opposite_vh
and opposite_vh
of the mesh, but these trigger an error if the opposite half-edge does not exist (we are currently on a boundary half-edge).
Given that I'll encounter these often, what's a better way to iterate over all edges (I actually don't specifically care about half-edge, I'm getting data for each edge, but the direction doesn't matter. What I need are the two vertices)?