enable_anti_aliasing#

Renderer.enable_anti_aliasing()[source]#

Enable anti-aliasing using FXAA.

This tends to make edges appear softer and less pixelated.

Warning

Enabling this causes screenshots with vtk compiled with OSMesa to be all black. This cannot be enabled when compiled with OSMesa (EGL). See https://github.com/pyvista/pyvista/issues/2686 for more details.

Examples

>>> import pyvista
>>> pl = pyvista.Plotter()
>>> pl.enable_anti_aliasing()
>>> _ = pl.add_mesh(pyvista.Sphere(), show_edges=True)
>>> pl.show()
../../../_images/pyvista-Renderer-enable_anti_aliasing-1_00_00.png