Slice PyVista meshes with Matplotlib interactively
MIT License
This is a hacked version of @prisae's 3D
slicer
in discretize
to interactive slice
any 3D PyVista mesh using Matplotlib.
This is super hacky and a work in progress. Use with caution.
%matplotlib notebook
import pyvista as pv
from pyvista import examples
import matplotlib.pyplot as plt
# Local import
from slicer import Slicer
mesh = examples.load_channels()
slicer = Slicer(mesh, mesh.active_scalar_name)
plt.show()