How do I Get the Neighbors of a Vertex in a Delaunay Triangulation
조회 수: 3 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2014년 11월 17일
답변: MathWorks Support Team
2014년 11월 17일
How do I get the array of neighboring vertices of a vertex in a delaunayTriangulation object?
By neighboring vertices, I mean the vertices that are connected via edges to a particular vertex.
채택된 답변
MathWorks Support Team
2014년 11월 17일
Unfortunately there is no direct method you can call to get the neighbors of a particular vertex. But this can be done programmatically using other methods in delaunayTriangulation class, as follows:
1. Get all the triangles attached to a particular vertex in the triangulation.
2. Use the connectivity list to get the vertex indices of all these triangles.
3. Get a unique list of the above vertices.
You will need to remove the original vertex from the above list.
Please see the attached script "neighboringVertices.m" for sample code.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Delaunay Triangulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!