pyvista.plotting.themes.Theme.volume_mapper

pyvista.plotting.themes.Theme.volume_mapper#

property Theme.volume_mapper: str[source]#

Return or set the default volume_mapper parameter.

Must be one of the following strings, which are mapped to the following VTK volume mappers.

  • 'fixed_point' : vtk.vtkFixedPointVolumeRayCastMapper

  • 'gpu' : vtk.vtkGPUVolumeRayCastMapper

  • 'open_gl' : vtk.vtkOpenGLGPUVolumeRayCastMapper

  • 'smart' : vtk.vtkSmartVolumeMapper

Examples

Set default volume mapper globally to ‘gpu’.

>>> import pyvista as pv
>>> pv.global_theme.volume_mapper = 'gpu'