pyvista.CellType.vtk_class#
- property CellType.vtk_class: type[vtkCell] | None[source]#
Return the vtkCell class associated with this cell type.
Only concrete VTK classes that can instantiated are returned.
Noneis returned if the cell type has no corresponding VTK class or if the class is abstract.Added in version 0.48.
See also
Examples
Get the VTK class associated with the
TRIANGLEcell type.>>> import pyvista as pv >>> pv.CellType.TRIANGLE.vtk_class <class 'vtkmodules.vtkCommonDataModel.vtkTriangle'>
Abstract cell types like
HIGHER_ORDER_HEXAHEDRONreturnNone.>>> pv.CellType.HIGHER_ORDER_HEXAHEDRON.vtk_class is None True