pyvista.CellArray.from_irregular_cells#
- classmethod CellArray.from_irregular_cells(cells: Sequence[VectorLike[int]]) pyvista.CellArray [source]#
Construct a
CellArray
from a (n_cells, cell_size) array of cell indices.- Parameters:
- cells
numpy.ndarray
orlist
[list
[int
]] Cell array of shape (n_cells, cell_size) where all cells have the same size cell_size.
- cells
- Returns:
pyvista.CellArray
Constructed
CellArray
.