# DMGetDimPoints
Get the half-open interval for all points of a given dimension 
## Synopsis
```
#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMGetDimPoints(DM dm, PetscInt dim, PetscInt *pStart, PetscInt *pEnd)
```
Collective on dm


## Input Parameters

- ***dm -*** the `DM`
- ***dim -*** the dimension



## Output Parameters

- ***pStart -*** The first point of the given dimension
- ***pEnd -*** The first point following points of the given dimension



## Note
The points are vertices in the Hasse diagram encoding the topology. This is explained in
https://arxiv.org/abs/0908.4427. If no points exist of this dimension in the storage scheme,
then the interval is empty.




## See Also
 `DMPLEX`, `DMPlexGetDepthStratum()`, `DMPlexGetHeightStratum()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/dacreate.c.html#DMGetDimPoints_DA">DMGetDimPoints_DA in src/dm/impls/da/dacreate.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/forest/p4est/pforest.h.html#DMGetDimPoints_pforest">DMGetDimPoints_pforest in src/dm/impls/forest/p4est/pforest.h</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexcreate.c.html#DMGetDimPoints_Plex">DMGetDimPoints_Plex in src/dm/impls/plex/plexcreate.c</A><BR>


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