pyvista.DataObject.copy#
- DataObject.copy(deep=True)[source]#
Return a copy of the object.
- Parameters:
- Returns:
pyvista.DataSet
Deep or shallow copy of the input. Type is identical to the input.
Examples
Create and make a deep copy of a PolyData object.
>>> import pyvista as pv >>> mesh_a = pv.Sphere() >>> mesh_b = mesh_a.copy() >>> mesh_a == mesh_b True