pyvista.Property.culling#

property Property.culling: str[source]#

Return or set face culling.

Does not render faces that are culled. This can be helpful for dense surface meshes, especially when edges are visible, but can cause flat meshes to be partially displayed. Defaults to 'none'. One of the following:

  • "back" - Enable backface culling

  • "front" - Enable frontface culling

  • 'none' - Disable both backface and frontface culling

Examples

Get the default culling value and visualize it.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.culling
'none'
>>> prop.plot()
../../../_images/pyvista-Property-culling-1_00_00.png

Visualize backface culling. This looks the same as the default culling 'none' because the forward facing faces are already obscuring the back faces.

>>> prop.culling = 'back'
>>> prop.plot()
../../../_images/pyvista-Property-culling-1_01_00.png

Plot frontface culling. Here, the forward facing faces are hidden entirely.

>>> prop.culling = 'front'
>>> prop.plot()
../../../_images/pyvista-Property-culling-1_02_00.png