# Examples from pyvista.plotting.themes.Theme.allow_empty_mesh
# ============================================================

# Enable plotting of empty meshes.
import pyvista as pv
pv.global_theme.allow_empty_mesh = True

# Now add an empty mesh to a plotter
pl = pv.Plotter()
_ = pl.add_mesh(pv.PolyData())
pl.show()

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

