Cell.type

Contents

Cell.type#

property Cell.type: CellType[source]#

Get the cell type from the enum pyvista.CellType.

Returns:
pyvista.CellType

Type of cell.

Examples#

Download Python source code | Download Jupyter notebook

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