# Examples from pyvista.PolyDataFilters.subdivide_adaptive
# ========================================================

# First, load the example airplane mesh and plot it.
import pyvista as pv
from pyvista import examples
mesh = pv.PolyData(examples.planefile)
mesh.plot(show_edges=True, line_width=3)

# Subdivide the mesh
submesh = mesh.subdivide_adaptive(max_n_passes=2)
submesh.plot(show_edges=True)

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