# Examples from pyvista.CellType.n_points
# =======================================

# `LINE` has a fixed number of points.
import pyvista as pv
pv.CellType.LINE.n_points

# `POLY_LINE` has a variable number of points and raises a ValueError.
try:
    pv.CellType.POLY_LINE.n_points
except ValueError as error:
    print(error)

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

