# Examples from pyvista.DataObjectFilters.slice_implicit
# ======================================================

# Slice the surface of a sphere.
import pyvista as pv
import vtk
sphere = vtk.vtkSphere()
sphere.SetRadius(10)
mesh = pv.Wavelet()
slice = mesh.slice_implicit(sphere)
slice.plot(show_edges=True, line_width=5)

cylinder = vtk.vtkCylinder()
cylinder.SetRadius(10)
mesh = pv.Wavelet()
slice = mesh.slice_implicit(cylinder)
slice.plot(show_edges=True, line_width=5)

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