:orphan:
# DMPlexCellRefinerMapLocalizedCoordinates
Given a cell of `DMPolytopeType` ct with localized coordinates x, generate localized coordinates xr for subcell r of type rct. 
## Synopsis
```
#include "petscdmplextransform.h" 
static PetscErrorCode DMPlexTransformMapLocalizedCoordinates(DMPlexTransform tr, DMPolytopeType ct, DMPolytopeType rct, PetscInt r, const PetscScalar x[], PetscScalar xr[])
```
Not Collective


## Input Parameters

- ***tr  -*** The `DMPlexTransform`
- ***ct  -*** The type of the parent cell
- ***rct -*** The type of the produced cell
- ***r   -*** The index of the produced cell
- ***x   -*** The localized coordinates for the parent cell



## Output Parameter

- ***xr  -*** The localized coordinates for the produced cell





## See Also
 [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexTransform`, `DMPolytopeType`, `DMPlexCellRefinerSetCoordinates()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/interface/plextransform.c.html#DMPlexCellRefinerMapLocalizedCoordinates">src/dm/impls/plex/transform/interface/plextransform.c</A>


---
[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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
