# DMPlexTransformGetSubcellOrientation
Transform the replica number and orientation for a target point according to the group action for the source point 
## Synopsis
```
#include "petscdmplextransform.h" 
PetscErrorCode DMPlexTransformGetSubcellOrientation(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, PetscInt so, DMPolytopeType tct, PetscInt r, PetscInt o, PetscInt *rnew, PetscInt *onew)
```
Not Collective


## Input Parameters

- ***tr  -*** The `DMPlexTransform`
- ***sct -*** The source point cell type, from whom the new cell is being produced
- ***sp  -*** The source point
- ***so  -*** The orientation of the source point in its enclosing parent
- ***tct -*** The target point cell type
- ***r   -*** The replica number requested for the produced cell type
- ***o   -*** The orientation of the replica



## Output Parameters

- ***rnew -*** The replica number, given the orientation of the parent
- ***onew -*** The replica orientation, given the orientation of the parent





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexTransform`, `DMPolytopeType`, `DMPlexTransformCellTransform()`, `DMPlexTransformApply()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/interface/plextransform.c.html#DMPlexTransformGetSubcellOrientation">src/dm/impls/plex/transform/interface/plextransform.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>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/extrude/plextrextrude.c.html#DMPlexTransformGetSubcellOrientation_Extrude">DMPlexTransformGetSubcellOrientation_Extrude in src/dm/impls/plex/transform/impls/extrude/plextrextrude.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/1d/plexref1d.c.html#DMPlexTransformGetSubcellOrientation_1D">DMPlexTransformGetSubcellOrientation_1D in src/dm/impls/plex/transform/impls/refine/1d/plexref1d.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/alfeld/plexrefalfeld.c.html#DMPlexTransformGetSubcellOrientation_Alfeld">DMPlexTransformGetSubcellOrientation_Alfeld in src/dm/impls/plex/transform/impls/refine/alfeld/plexrefalfeld.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/bl/plexrefbl.c.html#DMPlexTransformGetSubcellOrientation_BL">DMPlexTransformGetSubcellOrientation_BL in src/dm/impls/plex/transform/impls/refine/bl/plexrefbl.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/regular/plexrefregular.c.html#DMPlexTransformGetSubcellOrientation_Regular">DMPlexTransformGetSubcellOrientation_Regular in src/dm/impls/plex/transform/impls/refine/regular/plexrefregular.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/sbr/plexrefsbr.c.html#DMPlexTransformGetSubcellOrientation_SBR">DMPlexTransformGetSubcellOrientation_SBR in src/dm/impls/plex/transform/impls/refine/sbr/plexrefsbr.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/tobox/plexreftobox.c.html#DMPlexTransformGetSubcellOrientation_ToBox">DMPlexTransformGetSubcellOrientation_ToBox in src/dm/impls/plex/transform/impls/refine/tobox/plexreftobox.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/transform/interface/plextransform.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)  
