Mesh.vertices

Mesh.vertices(data=False)[source]

Iterate over the vertices of the mesh.

Parameters:
databool, optional

If True, yield the vertex attributes in addition to the vertex identifiers.

Yields:
int | tuple[int, dict[str, Any]]

If data is False, the next vertex identifier. If data is True, the next vertex as a (key, attr) tuple.