# Examples from pyvista.DataSet.get_array
# =======================================

# Create a DataSet with a variety of arrays.
import pyvista as pv
mesh = pv.Cube()
mesh.clear_data()
mesh.point_data['point-data'] = range(mesh.n_points)
mesh.cell_data['cell-data'] = range(mesh.n_cells)
mesh.field_data['field-data'] = ['a', 'b', 'c']
mesh.array_names

# Get the point data array.
mesh.get_array('point-data')

# Get the cell data array.
mesh.get_array('cell-data')

# Get the field data array.
mesh.get_array('field-data')

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

