clear_field_data

Table.clear_field_data()

Remove all field data.

Examples

Add field data to a PolyData dataset and then remove it.

>>> import pyvista
>>> mesh = pyvista.Sphere()
>>> mesh.field_data['my-field-data'] = range(10)
>>> len(mesh.field_data)
1
>>> mesh.clear_field_data()
>>> len(mesh.field_data)
0