DataSet.active_normals#
- property DataSet.active_normals: pyvista_ndarray | None[source]#
Return the active normals as an array.
- Returns:
pyvista_ndarrayActive normals of this dataset.
Notes#
If both point and cell normals exist, this returns point normals by default.
Examples#
Download Python source code | Download Jupyter notebook
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 as pv
>>> mesh = pv.Sphere()
>>> mesh = mesh.compute_normals()
>>> normals = mesh.active_normals
>>> normals.shape
(842, 3)
>>> mesh.n_points
842