- Home /
Identify if two vertices are connected
I have a FBX mesh. I then take a list of vertices with Y = 0 out of it (basically all vertices of the mesh that "stand" on the ground. I then need to find if any of the vertices on the list form an angle with two other vertices on the list. How do i do that?
need more info, each vertex will form an angle with any two other vertices. Are you trying to detect the edges?
Yes i'm trying to detect the edges. Specifically, i need to find all combinations of three vertices A, B and C, which satisfy the following conditions
1) Vertex A is connected to Vertex B 2) Vertex B is connected to Vertex C 3) All three vertexes have y = 0
The angle bit is needed a bit further down the line, when i'll start figuring out if the ABC angle is convex or concave. But for now i just need to identify the edges.
Alright, polygonal edge detection is a bear of a problem. Let me put some thought into this and give you a better response later. Since you're only using 2 dimensions and everything is squished to Y = 0 maybe there's a clever 2d solution.
Your answer
![](https://koobas.hobune.stream/wayback/20220613095620im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Extrude 2D Mesh Vertices In Surface Shader 1 Answer
Reding from Mesh.colors doesn't display vertex colors of fbx 0 Answers
Rigged model facing the wrong way 1 Answer
create a collider onto an fbx 1 Answer
Scaling the Mesh Collider 4 Answers