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

import pyvista as pv
cell_array = pv.CellArray.from_arrays([0, 3, 6], [0, 1, 2, 3, 4, 5])
cell_array.cell_offsets

# Replace the offsets so the same connectivity describes three 2-point cells.
cell_array.cell_offsets = [0, 2, 4, 6]
cell_array.n_cells

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