Neighboring triangles of each vertex

  • Thread starter Thread starter ria91
  • Start date Start date
  • Tags Tags
    Triangles Vertex
AI Thread Summary
To find neighboring triangles of each vertex in an unstructured triangular grid, a common approach is to use a double loop method. This involves iterating through each triangle and checking for shared vertices with other triangles, resulting in a runtime complexity of O(n^2). If the data structure consists solely of a list of triangles, this method effectively identifies neighboring triangles by comparing vertices.
ria91
Messages
3
Reaction score
0
I have a mesh with unstructured triangular grid.
I need to find neighboring triangles of each vertex. How can I do it?
Thanks before :D
 
Physics news on Phys.org
Hey ria91.

What exactly is the data structure like? If its just a list of triangles then do a double loop (runtime O(n^2)) where you fix one triangle and get all the other triangles that have at least one similar vertex.
 
Back
Top