:orphan:
# DMMoabCreateVertices
Creates and adds several vertices to the primary set represented by the DM. 
## Synopsis
```
#include "petscdmmoab.h"   
PetscErrorCode DMMoabCreateVertices(DM dm, const PetscReal *coords, PetscInt nverts, moab::Range *overts)
```
Collective


## Input Parameters

- ***dm -*** The DM object
- ***type -*** The type of element to create and add (Edge/Tri/Quad/Tet/Hex/Prism/Pyramid/Polygon/Polyhedra)
- ***conn -*** The connectivity of the element
- ***nverts -*** The number of vertices that form the element



## Output Parameter

- ***overts  -*** The list of vertices that were created (can be NULL)





## See Also
 `DMMoabCreateSubmesh()`, `DMMoabCreateElement()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/moab/dmmoab.cxx.html#DMMoabCreateVertices">src/dm/impls/moab/dmmoab.cxx</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/moab/dmmoab.cxx)


[Index of all DMMOAB routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
