flip_normals

PolyDataFilters.flip_normals()

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

Examples

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)
>>> sphere.flip_normals()
>>> sphere.plot_normals(mag=0.1, opacity=0.5)
../../../_images/pyvista-PolyDataFilters-flip_normals-1_00_00.png
../../../_images/pyvista-PolyDataFilters-flip_normals-1_00_01.png