pyvista.themes._DepthPeelingConfig

class _DepthPeelingConfig

PyVista depth peeling configuration.

Examples

Set global depth peeling parameters.

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

Methods

_DepthPeelingConfig.from_dict(dict_)

Create from a dictionary.

_DepthPeelingConfig.to_dict()

Return theme config parameters as a dictionary.

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.