m3sh.itertools.
verts_dij#
- verts_dij(item, stop=None, start=0.0)#
Dijkstra based vertex neighborhood iterator.
Visit the vertex neighborhood of a mesh item in a Dijkstra like fashion (distance based breadth-first search).
- Parameters:
- itemVertex or Halfedge or Face
The seed item.
- stopfloat, optional
All vertices at distance less or equal to stop are visited.
- startfloat, optional
Vertex reporting starts at the given distance.
- Yields:
- Vertex
Next vertex according to distance.
- float
Distance to item, i.e., the length of the shortest edge path that connects the returned vertex to the seed item.