pyvista.get_array#
- get_array(
 - mesh: DataSet | _vtk.vtkDataSet | _vtk.vtkTable,
 - name: str,
 - preference: PointLiteral | CellLiteral | FieldLiteral | RowLiteral = 'cell',
 - err: bool = False,
 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.