ImageData.points#
- property ImageData.points: NumpyArray[float][source]#
Build a copy of the implicitly defined points as a numpy array.
- Returns:
numpy.ndarrayArray of points representing the image data.
Notes#
The points for a pyvista.ImageData cannot be set.
Examples#
Download Python source code | Download Jupyter notebook
>>> 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.]])