pyvista.CellType.n_edges#
- property CellType.n_edges: int[source]#
Return the number of edges defined by this cell type.
Added in version 0.48.
- Raises:
ValueErrorIf the number of edges cannot be determined without a concrete instance. Polygon, polyhedron, triangle strip, and convex point set will all raise an error.
See also
Examples
QUADhas a fixed number of edges.>>> import pyvista as pv >>> pv.CellType.QUAD.n_edges 4
POLYGONhas a variable number of edges and raises a ValueError.>>> try: ... pv.CellType.POLYGON.n_edges ... except ValueError as error: ... print(error) Cannot determine number of edges for 'POLYGON' without a concrete cell instance.
Zero- and one-dimensional cell types have no edges.
>>> pv.CellType.VERTEX.n_edges 0
>>> pv.CellType.LINE.n_edges 0