# DMPolytopeMatchVertexOrientation
Determine an orientation (transformation) that takes the source vertex arrangement to the target vertex arrangement 
## Synopsis
```
#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMPolytopeMatchVertexOrientation(DMPolytopeType ct, const PetscInt sourceVert[], const PetscInt targetVert[], PetscInt *ornt, PetscBool *found)
```
Not collective


## Input Parameters

- ***ct         -*** The `DMPolytopeType`
- ***sourceVert -*** The source arrangement of vertices
- ***targetVert -*** The target arrangement of vertices



## Output Parameters

- ***ornt  -*** The orientation (transformation) which will take the source arrangement to the target arrangement
- ***found -*** Flag indicating that a suitable orientation was found





## Note
An arrangement is a vertex order

Each orientation (transformation) is labeled with an integer from negative `DMPolytopeTypeGetNumArrangments(ct)`/2 to `DMPolytopeTypeGetNumArrangments(ct)`/2
that labels each arrangement (vertex ordering).

See `DMPolytopeMatchOrientation()` to find a new face orientation that takes the source face arrangement to the target face arrangement


## See Also
 `DMPolytopeType`, `DMPolytopeGetOrientation()`, `DMPolytopeMatchOrientation()`, `DMPolytopeTypeGetNumVertices()`, `DMPolytopeTypeGetVertexArrangment()`

## Level
advanced

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


---
[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)  
