pyvista.Cell.type#

property Cell.type: CellType[source]#

Get the cell type from the enum pyvista.CellType.

Returns:
pyvista.CellType

Type of cell.

Examples

>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> mesh.get_cell(0).type
<CellType.TRIANGLE: 5>