Edge extraction from a voronoi tessellation

30 ビュー (過去 30 日間)
Tonino Nucifora
Tonino Nucifora 2020 年 10 月 19 日
コメント済み: HG 2021 年 6 月 14 日
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.

回答 (1 件)

Sarvani Panguluri
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'
You can refer to this Computing the Voronoi Diagram for more insight
Hope this helps!
  6 件のコメント
Tonino Nucifora
Tonino Nucifora 2020 年 10 月 22 日
So the edges are already contained within the patch? Don't need a matrix to extract the sides of the various polygons? And also is it possible to convert this into an STL file? Thank you.
HG
HG 2021 年 6 月 14 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVoronoi Diagram についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by