pyvista.UnstructuredGrid.cell_connectivity#
- property UnstructuredGrid.cell_connectivity: NumpyArray[float][source]#
Return a the vtk cell connectivity as a numpy array.
This is effectively
UnstructuredGrid.cells
without the padding.- Returns:
numpy.ndarray
Connectivity array.
See also
Examples
Return the cell connectivity for the first two cells.
>>> import pyvista as pv >>> from pyvista import examples >>> hex_beam = pv.read(examples.hexbeamfile) >>> hex_beam.cell_connectivity[:16] array([ 0, 2, 8, 7, 27, 36, 90, 81, 2, 1, 4, 8, 36, 18, 54, 90])