pyvista.Property.edge_opacity#

property Property.edge_opacity: float[source]#

Return or set the edge opacity of this property.

Edge opacity of the mesh. A single float value that will be applied globally edge opacity of the mesh and uniformly applied everywhere. Between 0 and 1.

Note

edge_opacity uses SetEdgeOpacity as the underlying method which requires VTK version 9.3 or higher. If SetEdgeOpacity is not available, edge_opacity is set to 1.

Examples

Set edge opacity to 0.5.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.show_edges = True
>>> prop.edge_opacity = 0.5
>>> prop.edge_opacity
0.5

Visualize default edge opacity of 1.0.

>>> prop.edge_opacity = 1.0
>>> prop.plot()
../../../_images/pyvista-Property-edge_opacity-1_00_00.png

Visualize edge opacity of 0.1.

>>> prop.edge_opacity = 0.1
>>> prop.plot()
../../../_images/pyvista-Property-edge_opacity-1_01_00.png