active_normals

property PolyData.active_normals: Optional[pyvista.core.pyvista_ndarray.pyvista_ndarray]

Return the active normals as an array.

Returns
pyvista_ndarray

Active normals of this dataset.

Notes

If both point and cell normals exist, this returns point normals by default.

Examples

Compute normals on an example sphere mesh and return the active normals for the dataset. Show that this is the same size as the number of points.

>>> import pyvista
>>> mesh = pyvista.Sphere()
>>> mesh = mesh.compute_normals()
>>> normals = mesh.active_normals
>>> normals.shape
(842, 3)
>>> mesh.n_points
842