QuadraticEdge#
- QuadraticEdge() UnstructuredGrid[source]#
Create a
pyvista.UnstructuredGridcontaining a single quadratic edge.This cell corresponds to the
pyvista.CellType.QUADRATIC_EDGEcell type.- Returns:
pyvista.UnstructuredGridUnstructuredGrid containing a single quadratic edge.
Examples#
Download Python source code | Download Jupyter notebook
Create and plot a single quadratic edge.
>>> from pyvista import examples
>>> grid = examples.cells.QuadraticEdge()
>>> examples.plot_cell(grid)
List the grid’s cells.
>>> grid.cells
array([3, 0, 1, 2])
List the grid’s points.
>>> grid.points
pyvista_ndarray([[0. , 0. , 0. ],
[1. , 0. , 0. ],
[0.5, 0. , 0. ]])
>>> grid.celltypes # same as pyvista.CellType.QUADRATIC_EDGE
array([21], dtype=uint8)