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