There are index and vertex buffers like the ones described here to draw triangles.
Frequently in my code, I need to lookup which triangles share a specific vertex. The most basic approach is:
- To loop over index buffer and find triangles which contain the index of that specific vertex.
Now I wonder if I'm missing more efficient or standard algorithms. Thanks.