pyvista.ImageData.active_vectors

pyvista.ImageData.active_vectors#

property ImageData.active_vectors: pyvista_ndarray | None[source]#

Return the active vectors array.

Returns:
Optional[pyvista_ndarray]

Active vectors array.

Examples

Create a mesh, compute the normals inplace, and return the normals vector array.

>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> _ = mesh.compute_normals(inplace=True)
>>> mesh.active_vectors  
pyvista_ndarray([[-2.48721432e-10, -1.08815623e-09, -1.00000000e+00],
                 [-2.48721432e-10, -1.08815623e-09,  1.00000000e+00],
                 [-1.18888125e-01,  3.40539310e-03, -9.92901802e-01],
                 ...,
                 [-3.11940581e-01, -6.81432486e-02,  9.47654784e-01],
                 [-2.09880397e-01, -4.65070531e-02,  9.76620376e-01],
                 [-1.15582108e-01, -2.80492082e-02,  9.92901802e-01]],
                dtype=float32)