# How can I access the triangles of a static mesh C++?

**URL:** <https://forums.unrealengine.com/t/how-can-i-access-the-triangles-of-a-static-mesh-c/486923>\
**Category:** C++\
**Tags:** index, unreal-engine, staticmesh, CPP, question\
**Created:** [August 1, 2021, 8:37pm UTC](https://forums.unrealengine.com/t/how-can-i-access-the-triangles-of-a-static-mesh-c/486923 "2021-08-01T20:37:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kleio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kleio](https://forums.unrealengine.com/u/kleio)\
**Post date:** [August 1, 2021, 8:37pm UTC](https://forums.unrealengine.com/t/how-can-i-access-the-triangles-of-a-static-mesh-c/486923/1 "2021-08-01T20:37:20Z")

</div>

Hello, I’m trying to iterate over the triangles of a static mesh to run some sort of edge detection. I followed this link [Accessing Vertex Positions of static mesh](https://forums.unrealengine.com/t/accessing-vertex-positions-of-static-mesh/5715) and was able to access the positions of the vertices, I was expecting to get the indices also from the vertex buffers to reconstruct the triangles, but couldn’t find them. any hint or code snipped would be appreciated.

---

<div class="post-metadata">

**Author:** ![KiwiArgo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KiwiArgo](https://forums.unrealengine.com/u/KiwiArgo)\
**Post date:** [February 5, 2022, 4:15am UTC](https://forums.unrealengine.com/t/how-can-i-access-the-triangles-of-a-static-mesh-c/486923/2 "2022-02-05T04:15:55Z")

</div>

Hi,  
I wonder if you found a solution for this, I’m stuck in the same place than you were!

Cheers
