pyvista.DataSetFilters.extract_all_edges#

DataSetFilters.extract_all_edges(use_all_points=False, clear_data=False, progress_bar=False)[source]#

Extract all the internal/external edges of the dataset as PolyData.

This produces a full wireframe representation of the input dataset.

Parameters:
use_all_pointsbool, default: False

Indicates whether all of the points of the input mesh should exist in the output. When True, point numbering does not change and a threaded approach is used, which avoids the use of a point locator and is quicker.

By default this is set to False, and unused points are omitted from the output.

This parameter can only be set to True with vtk==9.1.0 or newer.

clear_databool, default: False

Clear any point, cell, or field data. This is useful if wanting to strictly extract the edges.

progress_barbool, default: False

Display a progress bar to indicate progress.

Returns:
pyvista.PolyData

Edges extracted from the dataset.

Examples

Extract the edges of a sample unstructured grid and plot the edges. Note how it plots interior edges.

>>> import pyvista as pv
>>> from pyvista import examples
>>> hex_beam = pv.read(examples.hexbeamfile)
>>> edges = hex_beam.extract_all_edges()
>>> edges.plot(line_width=5, color='k')
../../../_images/pyvista-DataSetFilters-extract_all_edges-1_00_00.png

See Extract Cell Centers for more examples using this filter.