points#

property RectilinearGrid.points: ndarray#

Return a copy of the points as an n by 3 numpy array.

Notes

Points of a pyvista.RectilinearGrid cannot be set. Set point coordinates with RectilinearGrid.x, RectilinearGrid.y, or RectilinearGrid.z.

Examples

>>> import numpy as np
>>> import pyvista
>>> xrng = np.arange(-10, 10, 10, dtype=float)
>>> yrng = np.arange(-10, 10, 10, dtype=float)
>>> zrng = np.arange(-10, 10, 10, dtype=float)
>>> grid = pyvista.RectilinearGrid(xrng, yrng, zrng)
>>> grid.points
array([[-10., -10., -10.],
       [  0., -10., -10.],
       [-10.,   0., -10.],
       [  0.,   0., -10.],
       [-10., -10.,   0.],
       [  0., -10.,   0.],
       [-10.,   0.,   0.],
       [  0.,   0.,   0.]])