# Regarding vertex, element and quadrature points

**URL:** <https://fenicsproject.discourse.group/t/regarding-vertex-element-and-quadrature-points/10028>\
**Category:** General\
**Created:** [December 22, 2022, 10:44pm UTC](https://fenicsproject.discourse.group/t/regarding-vertex-element-and-quadrature-points/10028 "2022-12-22T22:44:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ac101](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@ac101](https://fenicsproject.discourse.group/u/ac101)\
**Post date:** [December 22, 2022, 10:44pm UTC](https://fenicsproject.discourse.group/t/regarding-vertex-element-and-quadrature-points/10028/1 "2022-12-22T22:44:45Z")

</div>

I am currently working on adaptive methods and need to access quadrature points and weights, vertices associated with an element, and the centroid of the element. I found a few tricks to do it in legacy fenics but not in Fenicsx. can anyone point out at right resource?

Regards  
Ankit

---

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [December 23, 2022, 5:47am UTC](https://fenicsproject.discourse.group/t/regarding-vertex-element-and-quadrature-points/10028/2 "2022-12-23T05:47:02Z")

</div>

Quadrature points are defined with Basix, as explained in  
[How does the symbolic simplification in UFL works? - #4 by dokken](https://fenicsproject.discourse.group/t/how-does-the-symbolic-simplification-in-ufl-works/7141/4) (Syntax is a bit out of date, But should be easy to change).

To Get vertices see: [Getting coordinates of facets in dolfinx - #2 by dokken](https://fenicsproject.discourse.group/t/getting-coordinates-of-facets-in-dolfinx/5146/2)  
Here you replace the facet dimension with the cell dimension.

For midpoints see [dolfinx.mesh — DOLFINx 0.5.1 documentation](https://docs.fenicsproject.org/dolfinx/v0.5.1/python/generated/dolfinx.mesh.html?highlight=midpoints#dolfinx.mesh.compute_midpoints)
