pyvista.Texture.interpolate#

property Texture.interpolate: bool[source]#

Return if interpolate is enabled or disabled.

Examples

Show the masonry texture without interpolation. Here, we zoom to show the individual pixels.

>>> from pyvista import examples
>>> texture = examples.download_masonry_texture()
>>> texture.interpolation = False
>>> texture.plot(cpos='xy', zoom=3)
https://d33wubrfki0l68.cloudfront.net/024ac962d8a30ad6f361f9d556a1dfec0f75c538/a4bdd/_images/pyvista-texture-interpolate-1_00_00.png

Plot the same texture with interpolation.

>>> texture.interpolation = True
>>> texture.plot(cpos='xy', zoom=3)
https://d33wubrfki0l68.cloudfront.net/024ac962d8a30ad6f361f9d556a1dfec0f75c538/d0cef/_images/pyvista-texture-interpolate-1_01_00.png