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'.The setter accepts any of the following, and the getter returns
'back','front'or'none':True,'b','back','backface'- Enable backface culling'f','front','frontface'- Enable frontface cullingFalse,'none'- Disable both backface and frontface culling
Examples#
Download Python source code | Download Jupyter notebook
Get the default culling value and visualize it.
>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.culling
'none'
>>> prop.plot()
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()
Plot frontface culling. Here, the forward facing faces are hidden entirely.
>>> prop.culling = 'front'
>>> prop.plot()