:orphan:
# DMPlexInsertCone
Insert a point into the in-edges for the point p in the DAG 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexInsertCone(DM dm, PetscInt p, PetscInt conePos, PetscInt conePoint)
```
Not Collective


## Input Parameters

- ***mesh -*** The `DMPLEX`
- ***p -*** The point, which must lie in the chart set with `DMPlexSetChart()`
- ***conePos -*** The local index in the cone where the point should be put
- ***conePoint -*** The mesh point to insert





## See Also
 [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexCreate()`, `DMPlexGetCone()`, `DMPlexSetChart()`, `DMPlexSetConeSize()`, `DMSetUp()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plex.c.html#DMPlexInsertCone">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)  
