UnstructuredGrid.cell_connectivity#
- property UnstructuredGrid.cell_connectivity: NumpyArray[int][source]#
Return the cell connectivity as a numpy array.
This is effectively
UnstructuredGrid.cellswithout the padding.- Returns:
numpy.ndarrayConnectivity array.
See also
Examples#
Download Python source code | Download Jupyter notebook
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]...)