cell_type

UniformGrid.cell_type(ind: int) int

Return the type of a cell.

Parameters
indint

Cell type ID.

Returns
int

VTK cell type. See <https://vtk.org/doc/nightly/html/vtkCellType_8h_source.html>.

Examples

>>> from pyvista import examples
>>> mesh = examples.load_airplane()
>>> mesh.cell_type(0)
5