# Examples from pyvista.DataObjectFilters.clip_slab
# =================================================

# Extract a thick slab through the center of a sphere along the
# `z`-axis.
import pyvista as pv
sphere = pv.Sphere()
slab = sphere.clip_slab(thickness=0.2, normal='z')
slab.plot(show_edges=True)

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