PolyData.irregular_faces#
- property PolyData.irregular_faces: tuple[NumpyArray[int], ...][source]#
Return a tuple of face arrays.
- Returns:
tuple[numpy.ndarray]Tuple of length n_faces where each element is an array of point indices for points in that face.
Examples#
Download Python source code | Download Jupyter notebook
Get the face arrays of the five faces of a pyramid.
>>> import pyvista as pv
>>> pyramid = pv.Pyramid().extract_surface(algorithm=None)
>>> pyramid.irregular_faces
(array([0, 4, 3], dtype=int32),
array([0, 1, 4], dtype=int32),
array([0, 3, 2, 1], dtype=int32),
array([1, 2, 4], dtype=int32),
array([2, 3, 4], dtype=int32))