Mesh.face_sample

Mesh.face_sample(size=1)[source]

A random sample of the faces.

Parameters:
sizeint, optional

The number of faces in the random sample.

Returns:
list[int]

The identifiers of the faces.