field_array#

field_array(obj, name)[source]#

Return field data of a pyvista or vtk object.

Parameters:
objpyvista.DataSet or vtk.vtkDataSet

PyVista or VTK dataset.

namestr or int

Name or index of the array.

Returns:
pyvista.pyvista_ndarray or None

Wrapped array if the index or name is valid. Otherwise, None.