ImageData.active_vectors_name#
- property ImageData.active_vectors_name: str | None[source]#
Return the name of the active vectors array.
- Returns:
strName of the active vectors array.
Examples#
Download Python source code | Download Jupyter notebook
Create a mesh, compute the normals, set them as active, and return the name of the active vectors.
>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> mesh_w_normals = mesh.compute_normals()
>>> mesh_w_normals.active_vectors_name = 'Normals'
>>> mesh_w_normals.active_vectors_name
'Normals'