class_docstr: An internal class to manage filters/algorithms for polydata datasets.
class_docstr_tok: ["An","internal","class","to","manage","filters\/algorithms","for","polydata","datasets","."]
docstr: 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)
docstr_tok: ["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",")"]
code: def flip_normals(self):
      """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)
  
      """
      if not self.is_all_triangles:
          raise NotAllTrianglesError(
              "Can only flip normals on an all triangle mesh."
          )
  
      f = self._connectivity_array
  
      # swap first and last point index in-place
      # See: https://stackoverflow.com/a/33362288/
      f[::3], f[2::3] = f[2::3], f[::3].copy()
  
imports: import collections.abc
  import warnings
  import numpy
  import pyvista
  from pyvista.core import _vtk_core
  from pyvista.core.errors import MissingDataError, NotAllTrianglesError, PyVistaFutureWarning, VTKVersionError
  from pyvista.core.filters import _get_output, _update_alg
  from pyvista.core.filters.data_set import DataSetFilters
  from pyvista.core.utilities.arrays import FieldAssociation, get_array, get_array_association, set_default_active_scalars, vtk_id_list_to_array
  from pyvista.core.utilities.geometric_objects import NORMALS
  from pyvista.core.utilities.helpers import generate_plane, wrap
  from pyvista.core.utilities.misc import abstract_class, assert_empty_kwargs
label_desc: Use image node_id 32 for calling the PolyDataFilters obj's underlying member method code with example usage: obj.flip_normals() without return types