# Get borders navmesh

**URL:** <https://forums.unrealengine.com/t/get-borders-navmesh/457348>\
**Category:** World Creation\
**Tags:** edges, Navigation, unreal-engine, navmesh, question\
**Created:** [October 22, 2019, 6:30pm UTC](https://forums.unrealengine.com/t/get-borders-navmesh/457348 "2019-10-22T18:30:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![X\_Starter\_X](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/x_starter_x/32/590039_2.png) [@X\_Starter\_X](https://forums.unrealengine.com/u/X_Starter_X)\
**Post date:** [October 22, 2019, 6:30pm UTC](https://forums.unrealengine.com/t/get-borders-navmesh/457348/1 "2019-10-22T18:30:53Z")

</div>

Hi! I want to get edges or points of navmesh. I need a start and an end of navmesh. How can I to do it?

[Is this link useful][1]?

[And second link?][2]

 ![290780-navmeshedges.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/d/6edb1e59a0b0d6c0318d1f799825b63083024cb3.png)

---

<div class="post-metadata">

**Author:** ![X\_Starter\_X](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/x_starter_x/32/590039_2.png) [@X\_Starter\_X](https://forums.unrealengine.com/u/X_Starter_X)\
**Post date:** [October 24, 2019, 1:11pm UTC](https://forums.unrealengine.com/t/get-borders-navmesh/457348/2 "2019-10-24T13:11:08Z")

</div>

I found solution.  
I use function **FindDistanceToWall**.

```
const UNavigationSystemV1* NavSys = FNavigationSystem::GetCurrent<UNavigationSystemV1>(this);
const ARecastNavMesh* NavMesh = Cast<ARecastNavMesh>(&NavSys->GetMainNavDataChecked());
const float DistWall = NavMesh->FindDistanceToWall(NavLocation);
```
