DataObject.copy#
- DataObject.copy(deep: bool = True) Self[source]#
Return a copy of the object.
- Parameters:
- Returns:
pyvista.DataSetDeep or shallow copy of the input. Type is identical to the input.
Examples#
Download Python source code | Download Jupyter notebook
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