# Examples from pyvista.CellArray
# ===============================

# Create a cell array containing two triangles from the traditional interleaved format
from pyvista.core.cell import CellArray
cellarr = CellArray([3, 0, 1, 2, 3, 3, 4, 5])

# Create a cell array containing two triangles from separate offsets and connectivity arrays
from pyvista.core.cell import CellArray
offsets = [0, 3, 6]
connectivity = [0, 1, 2, 3, 4, 5]
cellarr = CellArray.from_arrays(offsets, connectivity)

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

