# Examples from pyvista.Cell.copy
# ===============================

# Create a deep copy of the cell and demonstrate it is deep.
from pyvista.examples.cells import Tetrahedron
mesh = Tetrahedron()
cell = mesh.get_cell(0)
deep_cell = cell.copy(deep=True)
deep_cell.points[:] = 0
cell != deep_cell

# Create a shallow copy of the cell and demonstrate it is shallow.
shallow_cell = cell.copy(deep=False)
shallow_cell.points[:] = 0
cell == shallow_cell

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

