# DMPlexTransformMapCoordinates
Calculate new coordinates for produced points 
## Synopsis
```
#include "petscdmplextransform.h" 
PetscErrorCode DMPlexTransformMapCoordinates(DMPlexTransform tr, DMPolytopeType pct, DMPolytopeType ct, PetscInt p, PetscInt r, PetscInt Nv, PetscInt dE, const PetscScalar in[], PetscScalar out[])
```
Not collective


## Input Parameters

- ***tr   -*** The `DMPlexTransform`
- ***pct  -*** The cell type of the parent, from whom the new cell is being produced
- ***ct   -*** The type being produced
- ***p    -*** The original point
- ***r    -*** The replica number requested for the produced cell type
- ***Nv   -*** Number of vertices in the closure of the parent cell
- ***dE   -*** Spatial dimension
- ***in   -*** array of size Nv*dE, holding coordinates of the vertices in the closure of the parent cell



## Output Parameter

- ***out -*** The coordinates of the new vertices





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

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/extrude/plextrextrude.c.html#DMPlexTransformMapCoordinates_Extrude">DMPlexTransformMapCoordinates_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/bl/plexrefbl.c.html#DMPlexTransformMapCoordinates_BL">DMPlexTransformMapCoordinates_BL in src/dm/impls/plex/transform/impls/refine/bl/plexrefbl.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)  
