- property RectilinearGrid.active_vectors_info: pyvista.core.dataset.ActiveArrayInfo¶
Return the active vector’s association and name.
Association refers to the data association (e.g. point, cell, or field) of the active vectors.
The vectors info in an object with namedtuple semantics, with attributes
If both cell and point vectors are present and neither have been set active within at the dataset level, point vectors will be made active.
Create a mesh, compute the normals inplace, set the active vectors to the normals, and show that the active vectors are the
'Normals'array associated with points.
>>> import pyvista >>> mesh = pyvista.Sphere() >>> _ = mesh.compute_normals(inplace=True) >>> mesh.active_vectors_name = 'Normals' >>> mesh.active_vectors_info ActiveArrayInfo(association=<FieldAssociation.POINT: 0>, name='Normals')