pyvista.PolyData.regular_faces#
- property PolyData.regular_faces: ndarray[source]#
Return a face array of point indices when all faces have the same size.
- Returns:
numpy.ndarrayArray of face indices with shape (n_faces, face_size).
See also
Notes
This property does not validate that the mesh’s faces are all actually the same size. If they’re not, this property may either raise a ValueError or silently return an incorrect array.
Examples
Get the face array of a tetrahedron as a 4x3 array
>>> import pyvista as pv >>> tetra = pv.Tetrahedron() >>> tetra.regular_faces array([[0, 1, 2], [1, 3, 2], [0, 2, 3], [0, 3, 1]])