# DMPlexInvertCell
Flips cell orientations since `DMPLEX` stores some of them internally with outward normals. 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexInvertCell(DMPolytopeType cellType, PetscInt cone[])
```

## Input Parameters

- ***cellType -*** The cell type
- ***cone -*** The incoming cone



## Output Parameter

- ***cone -*** The inverted cone (in-place)





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPolytopeType`, `DMPlexGenerate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexgenerate.c.html#DMPlexInvertCell">src/dm/impls/plex/plexgenerate.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexgenerate.c)


[Index of all DMPlex routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
