:orphan:
# DMPlexOrient
Give a consistent orientation to the input mesh 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexOrient(DM dm)
```

## Input Parameter

- ***dm -*** The `DM`



## Note
The orientation data for the `DM` are change in-place.

This routine will fail for non-orientable surfaces, such as the Moebius strip.




## See Also
 [](ch_unstructured), `DM`, `DMPLEX`, `DMCreate()`, `DMPLEX`

## Level
advanced

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/tutorials/ex3.c.html">src/tao/tutorials/ex3.c</A><BR>


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


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