pyvista.Cell.cast_to_unstructured_grid#
- Cell.cast_to_unstructured_grid() UnstructuredGrid [source]#
Cast this cell to an unstructured grid.
- Returns:
pyvista.UnstructuredGrid
This cell cast to a
pyvista.UnstructuredGrid
.
Examples
>>> from pyvista import examples >>> mesh = examples.load_hexbeam() >>> cell = mesh.get_cell(0) >>> grid = cell.cast_to_unstructured_grid() >>> grid UnstructuredGrid (0x7f9383619540) N Cells: 1 N Points: 8 X Bounds: 0.000e+00, 5.000e-01 Y Bounds: 0.000e+00, 5.000e-01 Z Bounds: 0.000e+00, 5.000e-01 N Arrays: 0