:orphan:
# DMPlexCreate
Creates a `DMPLEX` object, which encapsulates an unstructured mesh, or CW complex, which can be expressed using a Hasse Diagram.
## Synopsis
```
#include "petscdmplex.h"
#include "petscdmplex.h"
PetscErrorCode DMPlexCreate(MPI_Comm comm, DM *mesh)
```
Collective
## Input Parameter
- ***comm -*** The communicator for the `DMPLEX` object
## Output Parameter
- ***mesh -*** The `DMPLEX` object
## See Also
[](ch_unstructured), `DM`, `DMPLEX`, `DMType`, `DMPlexCreate()`, `DMCreate()`, `DMSetType()`
## Level
beginner
## Location
src/dm/impls/plex/plexcreate.c
## Examples
src/dm/impls/plex/tutorials/ex3f90.F90
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexcreate.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)