pyvista.examples.cells.Pixel#
- Pixel() UnstructuredGrid [ソース]#
Create a
pyvista.UnstructuredGrid
containing a single pixel.This cell corresponds to the
pyvista.CellType.PIXEL
cell type.- 戻り値:
pyvista.UnstructuredGrid
UnstructuredGrid containing a single pixel.
例
Create and plot a single pixel.
>>> from pyvista import examples >>> grid = examples.cells.Pixel() >>> examples.plot_cell(grid, cpos='xy')
グリッドのセルをリストアップします.
>>> grid.cells array([4, 0, 1, 2, 3])
グリッドのポイントをリストアップします.
>>> grid.points pyvista_ndarray([[0., 0., 0.], [1., 0., 0.], [0., 1., 0.], [1., 1., 0.]])
>>> grid.celltypes # same as pyvista.CellType.PIXEL array([8], dtype=uint8)