cell_type#

DataSet.cell_type(ind: int) int[source]#

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