# DMPolytopeGetOrientation
Determine an orientation (transformation) that takes the source face arrangement to the target face arrangement 
## Synopsis
```
#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMPolytopeGetOrientation(DMPolytopeType ct, const PetscInt sourceCone[], const PetscInt targetCone[], PetscInt *ornt)
```
Not collective


## Input Parameters

- ***ct         -*** The `DMPolytopeType`
- ***sourceCone -*** The source arrangement of faces
- ***targetCone -*** The target arrangement of faces



## Output Parameters

- ***ornt  -*** The orientation (transformation) which will take the source arrangement to the target arrangement





## Note
This function is the same as `DMPolytopeMatchOrientation()` except it will generate an error if no suitable orientation can be found.


## Developer Note
It is unclear why this function needs to exist since one can simply call `DMPolytopeMatchOrientation()` and error if none is found


## See Also
 `DMPolytopeType`, `DMPolytopeMatchOrientation()`, `DMPolytopeGetVertexOrientation()`, `DMPolytopeMatchVertexOrientation()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/interface/dm.c.html#DMPolytopeGetOrientation">src/dm/interface/dm.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex11.c.html">src/dm/impls/plex/tutorials/ex11.c.html</A><BR>


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


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