pyvista.get_array#
- get_array(mesh, name, preference='cell', err=False) pyvista.ndarray | None[source]#
Search point, cell and field data for an array.
- Parameters:
- mesh
pyvista.DataSet Dataset to get the array from.
- name
str The name of the array to get the range.
- preference
str, default: “cell” When scalars is specified, this is the preferred array type to search for in the dataset. Must be either
'point','cell', or'field'.- errbool, default:
False Whether to throw an error if array is not present.
- mesh
- Returns:
pyvista.pyvista_ndarrayorNoneRequested array. Return
Noneif there is no array matching thenameanderr=False.