pyvista.examples.examples.load_sphere_vectors#

load_sphere_vectors()[source]#

Create example sphere with a swirly vector field defined on nodes.

Returns:
pyvista.PolyData

Mesh containing vectors.

Examples

>>> from pyvista import examples
>>> mesh = examples.load_sphere_vectors()
>>> mesh.point_data
pyvista DataSetAttributes
Association     : POINT
Active Scalars  : vectors
Active Vectors  : vectors
Active Texture  : None
Active Normals  : Normals
Contains arrays :
    Normals                 float32    (842, 3)             NORMALS
    vectors                 float32    (842, 3)             VECTORS

See also

Sphere Vectors Dataset

See this dataset in the Dataset Gallery for more info.