pyvista.DataObject#

class DataObject(*args, **kwargs)[source]#

Methods common to all wrapped data objects.

Parameters:
*args

Any extra args are passed as option to all wrapped data objects.

**kwargs

Any extra keyword args are passed as option to all wrapped data objects.

Methods

DataObject.add_field_data(array, name[, deep])

Add field data.

DataObject.clear_field_data()

Remove all field data.

DataObject.copy([deep])

Return a copy of the object.

DataObject.copy_attributes(dataset)

Copy the data attributes of the input dataset object.

DataObject.copy_meta_from(*args, **kwargs)

Copy pyvista meta data onto this object from another object.

DataObject.copy_structure(dataset)

Copy the structure (geometry and topology) of the input dataset object.

DataObject.deep_copy(to_copy)

Overwrite this data object with another data object as a deep copy.

DataObject.get_data_range()

Get the non-NaN min and max of a named array.

DataObject.head([display, html])

Return the header stats of this dataset.

DataObject.save(filename[, binary, texture])

Save this vtk object to file.

DataObject.shallow_copy(to_copy)

Shallow copy the given mesh to this mesh.

Attributes

DataObject.actual_memory_size

Return the actual size of the dataset object.

DataObject.field_data

Return FieldData as DataSetAttributes.

DataObject.memory_address

Get address of the underlying VTK C++ object.

DataObject.user_dict

Set or return a user-specified data dictionary.