pyvista.field_array#
- field_array(obj: DataSet | _vtk.vtkDataSet, name: str) pyvista_ndarray | None [source]#
Return field data of a pyvista or vtk object.
- Parameters:
- obj
pyvista.DataSet
orvtk.vtkDataSet
PyVista or VTK dataset.
- name
str
|int
Name or index of the array.
- obj
- Returns:
pyvista.pyvista_ndarray
orNone
Wrapped array if the index or name is valid. Otherwise,
None
.