BiQuadraticQuadraticWedge#
- BiQuadraticQuadraticWedge() UnstructuredGrid[source]#
Create a
pyvista.UnstructuredGridcontaining a single biquadratic quadratic wedge.This cell corresponds to the
pyvista.CellType.BIQUADRATIC_QUADRATIC_WEDGEcell type.- Returns:
pyvista.UnstructuredGridUnstructuredGrid containing a single biquadratic quadratic wedge.
Examples#
Download Python source code | Download Jupyter notebook
Create and plot a single biquadratic quadratic wedge.
>>> from pyvista import examples
>>> grid = examples.cells.BiQuadraticQuadraticWedge()
>>> examples.plot_cell(grid)
List the grid’s cells.
>>> grid.cells
array([18, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17])
List the grid’s points.
>>> 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],
[0.5, 0. , 0.5],
[0.5, 0.5, 0.5],
[0. , 0.5, 0.5]])
>>> grid.celltypes # same as pyvista.CellType.BIQUADRATIC_QUADRATIC_WEDGE
array([32], dtype=uint8)