# Examples from pyvista.DataSetAttributes.clear
# =============================================

# Add an array to `point_data` to a DataSet and then clear the
# point_data.
import pyvista as pv
mesh = pv.Cube()
mesh.clear_data()
mesh.point_data['my_data'] = range(mesh.n_points)
len(mesh.point_data)
mesh.point_data.clear()
len(mesh.point_data)

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

