:orphan:
# DMPlexGetCellTypeLabel
Get the `DMLabel` recording the polytope type of each cell 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexGetCellTypeLabel(DM dm, DMLabel *celltypeLabel)
```
Not Collective


## Input Parameter

- ***dm -*** The `DMPLEX` object



## Output Parameter

- ***celltypeLabel -*** The `DMLabel` recording cell polytope type





## Note
This function will trigger automatica computation of cell types. This can be disabled by calling
`DMCreateLabel`(dm, "celltype") beforehand.


## See Also
 [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexGetCellType()`, `DMPlexGetDepthLabel()`, `DMCreateLabel()`

## Level
developer

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


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