m3sh.itertools.

verts_bfs#

verts_bfs(item, stop=None, start=1)#

Breadth-first vertex neighborhood iterator.

Breadth-first traversal of vertex neighborhood of a mesh item. Incident vertices of a halfedge or face are considered neighbors at distance zero.

Parameters:
itemVertex or Halfedge or Face

The seed item. Halfedges and faces are treated as vertex containers, their incident vertices define seed vertices.

stopint, optional

All vertices at edge distance less or equal to stop are visited. If None, the search will continue until all vertices of a connected component are visited.

startint, optional

Vertex reporting starts at the given distance level. Seed vertices are not reported by default.

Yields:
Vertex

Next vertex in breadth-first search.

int

Distance to item measured as the number of traversed edges.