# Examples from pyvista.DataSet.find_closest_point
# ================================================

# Find the index of the closest point to `(0, 1, 0)`.
import pyvista as pv
mesh = pv.Sphere()
index = mesh.find_closest_point((0, 1, 0))
index

# Get the coordinate of that point.
mesh.points[index]

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

