pyvista.CellArray.from_irregular_cells

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:
cellsnumpy.ndarray or list[list[int]]

Cell array of shape (n_cells, cell_size) where all cells have the same size cell_size.

Returns:
pyvista.CellArray

Constructed CellArray.