# Examples from pyvista.DataSetAttributes.valid_array_len
# =======================================================

# Show that valid array lengths match the number of points and
# cells for point and cell arrays, and there is no length limit
# for field data.
import pyvista as pv
mesh = pv.Cube()
mesh.n_points, mesh.n_cells
mesh.point_data.valid_array_len
mesh.cell_data.valid_array_len
mesh.field_data.valid_array_len is None

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

