pyvista.ImageData.points#

property ImageData.points: ndarray[source]#

Build a copy of the implicitly defined points as a numpy array.

Returns:
numpy.ndarray

Array of points representing the image data.

Notes

The points for a pyvista.ImageData cannot be set.

Examples

>>> import pyvista as pv
>>> grid = pv.ImageData(dimensions=(2, 2, 2))
>>> grid.points
array([[0., 0., 0.],
       [1., 0., 0.],
       [0., 1., 0.],
       [1., 1., 0.],
       [0., 0., 1.],
       [1., 0., 1.],
       [0., 1., 1.],
       [1., 1., 1.]])