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 toadd_mesh()for the edge actor(s).
Returns
Plotter— returnsselfto 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
set_scalar()— configure scalar field coloringset_contour()— add contour linesset_vector()— overlay vector glyphsshow()— trigger rendering and apply the full pipelineexport()— render and save a screenshot