pyvista.plotting.themes._DepthPeelingConfig#

class _DepthPeelingConfig[source]#

PyVista depth peeling configuration.

Examples

Set global depth peeling parameters.

>>> import pyvista as pv
>>> pv.global_theme.depth_peeling.number_of_peels = 1
>>> pv.global_theme.depth_peeling.occlusion_ratio = 0.0
>>> pv.global_theme.depth_peeling.enabled = True

Methods

Attributes

_DepthPeelingConfig.enabled

Return or set if depth peeling is enabled.

_DepthPeelingConfig.number_of_peels

Return or set the number of peels in depth peeling.

_DepthPeelingConfig.occlusion_ratio

Return or set the occlusion ratio in depth peeling.