pyvista.plotting.themes.Theme.allow_empty_mesh#

property Theme.allow_empty_mesh: bool[source]#

Return or set whether to allow plotting empty meshes.

Examples

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()  
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/b6d8a/_images/pyvista-plotting-themes-theme-allow_empty_mesh-1_00_00.png