Cell.edges
- Cell.edges(data=False)
Iterate over the edges of the mesh.
- Parameters
data (bool, optional) – Return the edge data as well as the edge vertex keys.
- Yields
tuple – The next edge as a (u, v) tuple, if
data
is false. The next edge as a ((u, v), data) tuple, ifdata
is true.
Notes
Mesh edges have no topological meaning. They are only used to store data. Edges are not automatically created when vertices and faces are added to the mesh. Instead, they are created when data is stored on them, or when they are accessed using this method.
This method yields the directed edges of the mesh. Unless edges were added explicitly using
add_edge()
the order of edges is as they come out. However, as long as the toplogy remains unchanged, the order is consistent.Examples
>>>