pyvista.DataSet.active_vectors_name

pyvista.DataSet.active_vectors_name#

property DataSet.active_vectors_name: str | None[source]#

Return the name of the active vectors array.

Returns:
str

Name of the active vectors array.

Examples

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'