Neighboring triangles of each vertex

  • Thread starter Thread starter ria91
  • Start date Start date
  • Tags Tags
    Triangles Vertex
Click For Summary
SUMMARY

The discussion focuses on identifying neighboring triangles for each vertex in an unstructured triangular grid mesh. A suggested approach involves using a double loop with a runtime complexity of O(n^2) to iterate through a list of triangles, fixing one triangle at a time and checking for shared vertices with other triangles. This method is straightforward but may not be optimal for large datasets. The conversation highlights the importance of understanding the underlying data structure to implement an efficient solution.

PREREQUISITES
  • Understanding of triangular mesh data structures
  • Familiarity with algorithmic complexity, specifically O(n^2) runtime
  • Basic programming skills to implement loops and data structures
  • Knowledge of vertex and triangle relationships in computational geometry
NEXT STEPS
  • Research efficient algorithms for finding neighboring triangles, such as spatial partitioning techniques
  • Learn about data structures optimized for mesh representation, like half-edge or winged-edge structures
  • Explore computational geometry libraries that facilitate mesh operations, such as CGAL or Triangle
  • Investigate parallel processing techniques to improve the performance of neighbor-finding algorithms
USEFUL FOR

This discussion is beneficial for computational geometers, game developers, and anyone working with mesh data structures who needs to optimize neighbor-finding algorithms in triangular grids.

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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
Replies
8
Views
1K
Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K