Edge extraction from a voronoi tessellation
조회 수: 20 (최근 30일)
이전 댓글 표시
Hello everyone,
I'm having a lot of problems about extracting edges from a random Voronoi tessellation.
Would any of you know how? Is there any function that allows you to do this?
Thank you.
댓글 수: 0
답변 (1개)
Sarvani Panguluri
2020년 10월 22일
Hi,
can you specify what you mean by "a random voronoi tesselation"?
Are you creating a 3D voronoi tesselation and trying to extract its edges?If so, Using voronoin /VoronoiDiagram functions output arguments,
[v,c]= voronoin(P); % P is matrix with coordinates
returns matrix v which represent Vertices of edges and a cell array c where each element of c containes the row indices of the Voronoi vertices v that make up a Voronoi cell.
v(c{i},:)
would return the vertices corresponding to cell number 'i'
Hope this helps!
참고 항목
카테고리
Help Center 및 File Exchange에서 Voronoi Diagram에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!