pyvista.PolyData.point_normals#
- property PolyData.point_normals: pyvista_ndarray[source]#
Return the point normals.
If the point data already contains an array named
'Normals'
, this array will be returned. Otherwise, the normals will be computed using the default options ofcompute_normals()
and returned.- Returns:
pyvista.pyvista_ndarray
Array of point normals.
Examples
>>> import pyvista as pv >>> sphere = pv.Sphere() >>> sphere.point_normals pyvista_ndarray([[-2.48721432e-10, -1.08815623e-09, -1.00000000e+00], [-2.48721432e-10, -1.08815623e-09, 1.00000000e+00], [-1.18888125e-01, 3.40539310e-03, -9.92901802e-01], ..., [-3.11940581e-01, -6.81432486e-02, 9.47654784e-01], [-2.09880397e-01, -4.65070531e-02, 9.76620376e-01], [-1.15582108e-01, -2.80492082e-02, 9.92901802e-01]], dtype=float32)