Mesh3gs.get_any_vertices

Mesh3gs.get_any_vertices(n, exclude_leaves=False)

Get a list of identifiers of a random set of n vertices.

Deprecated since version 1.13.3: Use vertex_sample() instead.

Parameters
  • n (int) – The number of random vertices.

  • exclude_leaves (bool, optional) – If True, exclude the leaves (vertices with only one connected edge) from the set.

Returns

list[int] – The identifiers of the vertices.