# Examples from pyvista.DataSet.points
# ====================================

# Create a mesh and return the points of the mesh as a numpy
# array.
import pyvista as pv
cube = pv.Cube()
points = cube.points
points

# Shift these points in the z direction and show that their
# position is reflected in the mesh points.
points[:, 2] += 1
cube.points

# You can also update the points in-place:
cube.points[...] = 2 * points
cube.points

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

