PolyDataFilters.flip_normals

PolyDataFilters.flip_normals#

PolyDataFilters.flip_normals() → None[source]#

Flip normals of a triangular mesh by reversing the point ordering.

Deprecated since version 0.45: This filter is deprecated. Use flip_faces(inplace=True) instead.

Examples#

Download Python source code | Download Jupyter notebook

Flip the normals of a sphere and plot the normals before and after the flip.

>>> import pyvista as pv
>>> sphere = pv.Sphere()
>>> sphere.plot_normals(mag=0.1)
../../../_images/pyvista-PolyDataFilters-flip_normals-b3de428d0460e486_00_00.png
>>> sphere.flip_normals()
>>> sphere.plot_normals(mag=0.1, opacity=0.5)