pyvista.Cell.get_face#
- Cell.get_face(index: int) Cell [source]#
Get the i-th face composing the cell.
- Parameters:
- index
int
Face ID.
- index
- Returns:
pyvista.Cell
Face given by
index
.
Examples
Return the face IDs composing the first face of an example tetrahedron.
>>> from pyvista.examples.cells import Tetrahedron >>> mesh = Tetrahedron() >>> cell = mesh.get_cell(0) >>> face = cell.get_face(0) >>> face.point_ids [0, 1, 3]