# Examples from pyvista.core.pointset._PointSetBase.points_to_single
# ==================================================================

# Create a mesh that has points of the type `float64` and
# convert the points to `float32`.
import pyvista as pv
mesh = pv.PolyData([[0.0, 0.0, 0.0]])
mesh.points.dtype
_ = mesh.points_to_single()
mesh.points.dtype

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