add_field_array

PolyData.add_field_array(scalars: numpy.ndarray, name: str, deep=True)

Add field data.

Deprecated since version 0.32.0: Use DataObject.add_field_data() instead.