m3sh.itertools.

verts#

verts(obj)#

Vertex iterator.

Iterator visiting the adjacent/incident vertices of obj. For a vertex this results in a counter-clockwise traversal of adjacent vertices (vertices connected by an edge). For a face, the incident vertices are visited in the order determined by the mesh orientation.

Parameters:
objVertex or Face or Mesh

The base object.

Yields:
Vertex

Next vertex in a traversal of adjacent/incident vertices. When applied to a mesh, this iterator will skip any deleted vertices present in its vertex list

Examples

The iterator skips deleted mesh items. Hence, applying it to a mesh

for v in verts(mesh):
    ...

is equivalent to

for v in mesh.vertices:
    if not v.deleted:
        ...