cell_type#

PolyData.cell_type(ind: int) int#

Return the type of a cell.

Parameters:
indint

Cell type ID.

Returns:
int

VTK cell type. See vtkCellType.h .

Examples

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