clear_data

PolyData.clear_data()

Remove all arrays from point/cell/field data.

Examples

Clear all arrays from a mesh.

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