Block.edges
- Block.edges(data=False)
Iterate over the edges of the mesh.
- Parameters:
- databool, optional
If True, yield the edge attributes in addition to the edge identifiers.
- Yields:
- tuple[int, int] | tuple[tuple[int, int], dict[str, Any]]
If data is False, the next edge as a (u, v) tuple. If data is True, the next edge as a ((u, v), data) tuple.
See also
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.