Problem 45220. Find triangles from edge
- If the edge is not part of any triangle in the list, the function must of course return the empty set, [].
- Edges are symmetric : [e1, e2] is the same edge as [e2, e1]
- Order of rows / edges in the output doesn't matter.
- Triangle indices are assumed always to be sorted in ascending order, T = [t1, t2, t3] with t1 < t2 < t3.
- Every indices are positive, distinct integers.
Solution Stats
Problem Comments
-
2 Comments
Info : T is actually a triangulation -list of triangles-, in which each index corresponding to the row index of a vertex in another list -a vertices list-, it is a widely used technique used to store and write triangular meshes in mesh processing. Here below the example is a tetrahedron -4 facets-.
I actually realize this problem looks like a lot to my second problem, "Find a common edge" ( https://fr.mathworks.com/matlabcentral/cody/problems/45218-find-a-common-edge ) ...
Solution Comments
Show commentsProblem Recent Solvers37
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1972 Solvers
-
16192 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
554 Solvers
-
42 Solvers
-
SatCom #1: Wavelength of an electomagnetic wave
246 Solvers
More from this Author42
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!