pyvista.Cell.get_edge#

Cell.get_edge(index: int) Cell[source]#

Get the i-th edge composing the cell.

Parameters:
indexint

Edge ID.

Returns:
pyvista.Cell

Edge given by index.

Examples

Extract a single edge from a face and output the IDs of the edge points.

>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> cell = mesh.get_cell(0)
>>> edge = cell.get_edge(0)
>>> edge.point_ids
[2, 30]