# Examples from pyvista.DataSetFilters.shrink
# ===========================================

# First, plot the original cube.
import pyvista as pv
mesh = pv.Cube()
mesh.plot(show_edges=True, line_width=5)

# Now, plot the mesh with shrunk faces.
shrunk = mesh.shrink(0.5)
shrunk.clear_data()  # cleans up plot
shrunk.plot(show_edges=True, line_width=5)

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