Can we move a vertex in voronoi diagram?

1 visualización (últimos 30 días)
Meshooo
Meshooo el 4 de Mzo. de 2014
Dear all,
Is it possible to modify, readjust, the location of a vertex in voronoi diagram?
Thank you.
Meshoo

Respuestas (1)

Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro el 3 de En. de 2023
Yes, quite easy:
X=[1 2 1.1 1.3 1.4 1.5 1.3 1.2 1.8 2.1 2.2];
Y=[1.5 1.3 1.5 1.8 1.4 1.6 2.5 2.3 2.4 1.1 1.8];
voronoi(X,Y,'r')
X(4)=1.9;
Y(4)=1.4;
voronoi(X,Y)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by