pyvista.examples.cells.QuadraticWedge

pyvista.examples.cells.QuadraticWedge#

QuadraticWedge() UnstructuredGrid[ソース]#

Create a pyvista.UnstructuredGrid containing a single quadratic wedge.

This cell corresponds to the pyvista.CellType.QUADRATIC_WEDGE cell type.

戻り値:
pyvista.UnstructuredGrid

UnstructuredGrid containing a single quadratic wedge.

Create and plot a single quadratic wedge.

>>> from pyvista import examples
>>> grid = examples.cells.QuadraticWedge()
>>> examples.plot_cell(grid)

グリッドのセルをリストアップします.

>>> grid.cells
array([15,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14])

グリッドのポイントをリストアップします.

>>> grid.points
pyvista_ndarray([[0. , 0. , 0. ],
                 [1. , 0. , 0. ],
                 [0. , 1. , 0. ],
                 [0. , 0. , 1. ],
                 [1. , 0. , 1. ],
                 [0. , 1. , 1. ],
                 [0.5, 0. , 0. ],
                 [0.5, 0.5, 0. ],
                 [0. , 0.5, 0. ],
                 [0.5, 0. , 1. ],
                 [0.5, 0.5, 1. ],
                 [0. , 0.5, 1. ],
                 [0. , 0. , 0.5],
                 [1. , 0. , 0.5],
                 [0. , 1. , 0.5]])
>>> grid.celltypes  # same as pyvista.CellType.QUADRATIC_WEDGE
array([26], dtype=uint8)
../../../_images/pyvista-examples-cells-QuadraticWedge-1_00_00.png