Vertices of polygons in bounded voronoi diagram

29 visualizaciones (últimos 30 días)
Hitarth Mishra
Hitarth Mishra el 3 de Dic. de 2015
Comentada: Matt J el 20 de Feb. de 2022
I am new to matlab and I am facing a problem as follows.
I want to find out the vertices of polygons that make up the voronoi diagram limited by a rectangular boundary. I was trying to use 'Voronoin' function but I am not able to think of a way to extract out the vertices of the bounded polygons. Voronoin gives us vertices of unbounded polygons and not that of bounded version. Besides it also treats both posotive and negative infinities as Inf only. So, please help me.
  2 comentarios
KalMandy
KalMandy el 27 de Oct. de 2016
Hi, have you found the solution for the above question? Please be kind enough to mention the solution here. Thanks
Bruno Lopes
Bruno Lopes el 20 de Feb. de 2022
It is the best I found on the internet.

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 30 de Oct. de 2016
Editada: Matt J el 8 de Feb. de 2022
I have created a function (attached) which will obtain the Voronoi polygons in inequality form, and also optionally in vertex form if bounds are specified. It relies on files available in this FEX submission, which must be downloaded. It is probably not an optimally fast algorithm and I don't know how it compares to VoronoiLimit, but it is a simple and flexible tool. On my machine, I am able to process an input data set of 2000 seed points in 2D in about 2 sec.(R2021b);
  20 comentarios
Bruno Lopes
Bruno Lopes el 20 de Feb. de 2022
It is one the the best I found on the internet.
Matt J
Matt J el 20 de Feb. de 2022
That submission has been discussed. An earlier poster seemed to say
that it was slow.

Iniciar sesión para comentar.

Más respuestas (1)

Preetham Manjunatha
Preetham Manjunatha el 8 de Feb. de 2022
Editada: Preetham Manjunatha el 8 de Feb. de 2022
Here is the link function to clip the extending edges of the Voronoi Diagram for rectangular or square region. Rigorously tested on the random points, this function can process an input data set of 2000 seed points in 2D in about 0.015 seconds on average.
  2 comentarios
Matt J
Matt J el 8 de Feb. de 2022
But it is exclusively for 2D, correct?
Preetham Manjunatha
Preetham Manjunatha el 8 de Feb. de 2022
Yes, only for 2D.

Iniciar sesión para comentar.

Categorías

Más información sobre Voronoi Diagram en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by