pyvista.CellArray.from_arrays

pyvista.CellArray.from_arrays#

static CellArray.from_arrays(
offsets: MatrixLike[int],
connectivity: MatrixLike[int],
deep: bool = False,
) CellArray[source]#

Construct a CellArray from offsets and connectivity arrays.

Parameters:
offsetsMatrixLike[int]

Offsets array of length n_cells + 1.

connectivityMatrixLike[int]

Connectivity array.

deepbool, default: False

Whether to deep copy the array data into the vtk arrays.

Returns:
CellArray

Constructed CellArray.