pyvista.DataSet.clear_data#

DataSet.clear_data() None[source]#

Remove all arrays from point/cell/field data.

Examples

Clear all arrays from a mesh.

>>> import pyvista as pv
>>> import numpy as np
>>> mesh = pv.Sphere()
>>> mesh.point_data.keys()
['Normals']
>>> mesh.clear_data()
>>> mesh.point_data.keys()
[]