Edge extraction from a voronoi tessellation
Show older comments
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.

Answers (1)
Sarvani Panguluri
on 22 Oct 2020
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!
6 Comments
Tonino Nucifora
on 22 Oct 2020
Sarvani Panguluri
on 22 Oct 2020
Can you post the code that you have used to create voronoi diagram.
Tonino Nucifora
on 22 Oct 2020
Sarvani Panguluri
on 22 Oct 2020
For assigning thickness values to edges, There is a property 'LineWidth' for patch and trisurf functions .Refer this.
Tonino Nucifora
on 22 Oct 2020
HG
on 14 Jun 2021
please answer my question if it's possible for you.
Categories
Find more on Voronoi Diagrams in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!