# Examples from pyvista.DataSetFilters.gaussian_splatting
# =======================================================

# Create an image data volume from a point cloud using Gaussian splatter.
import pyvista as pv

# Load the Stanford Bunny mesh.
bunny = pv.examples.download_bunny()

# Apply Gaussian splatter to generate a volumetric representation.
volume = bunny.gaussian_splatting(radius=0.01)

# Threshold the volume to filter out low-density regions.
threshed = volume.threshold(0.05)

# Visualize the thresholded volume with semi-transparency and no scalar bar.
threshed.plot(opacity=0.5, show_scalar_bar=False)

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