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

## Input Parameters

- ***dm -*** The `DMPLEX` object
- ***cell -*** The cell
- ***cone -*** The incoming cone



## Output Parameter

- ***cone -*** The reordered 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#DMPlexReorderCell">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)  
