# DMGetFirstLabeledPoint
Find first labeled point p_o in odm such that the corresponding point p in dm has the specified height. Return p and the corresponding ds. 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMGetFirstLabeledPoint(DM dm, DM odm, DMLabel label, PetscInt numIds, const PetscInt ids[], PetscInt height, PetscInt *point, PetscDS *ds)
```

## Input Parameters
dm - the `DM`
odm - the enclosing `DM`
label - label for `DM` domain, or NULL for whole domain
numIds - the number of ids
ids - An array of the label ids in sequence for the domain
height - Height of target cells in `DMPLEX` topology


## Output Parameters
point - the first labeled point
ds - the ds corresponding to the first labeled point




## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexSetActivePoint()`, `DMLabel`, `PetscDS`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexproject.c.html#DMGetFirstLabeledPoint">src/dm/impls/plex/plexproject.c</A>


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