# Examples from pyvista.DataSet.get_array_association
# ===================================================

# 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 association.
mesh.get_array_association('point-data')

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

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

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

