pyvista.Property.interpolation#
- property Property.interpolation: InterpolationType[source]#
Return or set the method of shading.
Defaults to
pyvista.plotting.themes._LightingConfig.interpolation
.One of the following options.
'Physically based rendering'
- Physically based rendering.'pbr'
- Alias for Physically based rendering.'Phong'
- Phong shading.'Gouraud'
- Gouraud shading.'Flat'
- Flat Shading.
This parameter is case insensitive.
Examples
Get the default interpolation and visualize it.
>>> import pyvista as pv >>> prop = pv.Property() >>> prop.interpolation <InterpolationType.FLAT: 0> >>> prop.plot()
Visualize gouraud shading.
>>> prop.interpolation = 'gouraud' >>> prop.plot()
Visualize phong shading.
>>> prop.interpolation = 'phong' >>> prop.plot()
Visualize physically based rendering.
>>> prop.interpolation = 'pbr' >>> prop.plot()