# PetscFEGeomGetPoint
Get the geometry for cell c at point p as a `PetscFEGeom` 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscFEGeomGetPoint(PetscFEGeom *geom, PetscInt c, PetscInt p, const PetscReal pcoords[], PetscFEGeom *pgeom)
```

## Input Parameters

- ***geom    -*** `PetscFEGeom` object
- ***c       -*** The cell
- ***p       -*** The point
- ***pcoords -*** The reference coordinates of point p, or NULL



## Output Parameter

- ***pgeom -*** The geometry of cell c at point p





## Notes
For affine geometries, this only copies to pgeom at point 0. Since we copy pointers into pgeom,
nothing needs to be done with it afterwards.

In the affine case, pgeom must have storage for the integration point coordinates in pgeom->v if pcoords is passed in.


## See Also
 `PetscFEGeom`, `PetscFEGeomRestoreChunk()`, `PetscFEGeomCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fe/interface/fegeom.c.html#PetscFEGeomGetPoint">src/dm/dt/fe/interface/fegeom.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/fe/interface/fegeom.c)


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