Skip to main content

set_feature_edges()

Configures the feature-edge overlay rendered on top of the mesh.

set_feature_edges() is part of the visualization pipeline. Feature edges are enabled by default — you only need to call this method if you want to change the appearance (color, width, opacity) or disable them. Like the other pipeline methods, calling it only stores the configuration; the edge actors are built during show() or export().

Feature edges are extracted using extract_feature_edges() per block (for pyvista.MultiBlock datasets) and added as a separate actor.

Parameters
  • color (str, default: "white") — Edge color.
  • line_width (int, default: 1) — Edge line width.
  • opacity (float, default: 1.0) — Edge opacity in [0, 1].
  • **kwargs — Additional kwargs forwarded to add_mesh() for the edge actor(s).
Returns
  • Plotter — returns self to enable chaining.

Example

from pyemsi import Plotter, examples

file_path = examples.transient_path()
plt = Plotter(file_path)
plt.set_scalar("B-Mag (T)", show_scalar_bar=False, show_edges=False)
plt.set_feature_edges(color="red", line_width=3)
plt.set_block_visibility("4", False)
plt.show()

See also