# Getting adjacent vertices on the boundary of a mesh

**URL:** <https://community.freefem.org/t/getting-adjacent-vertices-on-the-boundary-of-a-mesh/289>\
**Category:** General Discussion\
**Created:** [March 4, 2020, 12:04am UTC](https://community.freefem.org/t/getting-adjacent-vertices-on-the-boundary-of-a-mesh/289 "2020-03-04T00:04:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeniaminBogosel](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@BeniaminBogosel](https://community.freefem.org/u/BeniaminBogosel)\
**Post date:** [March 4, 2020, 12:04am UTC](https://community.freefem.org/t/getting-adjacent-vertices-on-the-boundary-of-a-mesh/289/1 "2020-03-04T00:04:19Z")

</div>

Hello,  
I noticed that in some meshes obtained with “trunc” the boundary elements are not ordered. I wish to get access to the adjacent vertices to a vertex on the boundary. Using the boundary elements I can get one neighbor, but since the elements are not ordered, finding the other one is not straightforward.

I could make a loop to find the right order of the boundary elements, but I was wondering if there was already something available for this in FreeFem.

Thank you and best regards,  
Beni
