- UnstructuredGrid.extract_feature_edges(feature_angle=30, boundary_edges=True, non_manifold_edges=True, feature_edges=True, manifold_edges=True, progress_bar=False)#
Extract edges from the surface of the mesh.
If the given mesh is not PolyData, the external surface of the given mesh is extracted and used.
From vtk documentation, the edges are one of the following:
Boundary (used by one polygon) or a line cell.
Non-manifold (used by three or more polygons).
Feature edges (edges used by two triangles and whose dihedral angle > feature_angle).
Manifold edges (edges used by exactly two polygons).
Feature angle (in degrees) used to detect sharp edges on the mesh. Used only when
feature_edges=True. Defaults to 30 degrees.
Extract the boundary edges. Defaults to
Extract non-manifold edges. Defaults to
Extract edges exceeding
feature_angle. Defaults to
Extract manifold edges. Defaults to
Display a progress bar to indicate progress.
Extract the edges from an unstructured grid.
>>> import pyvista >>> from pyvista import examples >>> hex_beam = pyvista.read(examples.hexbeamfile) >>> feat_edges = hex_beam.extract_feature_edges() >>> feat_edges.clear_data() # clear array data for plotting >>> feat_edges.plot(line_width=10)
See the Extract Edges for more examples using this filter.