I would like to use MATLAB to draw irregular regions and use Voronoi to divide them into multiple sub regions. Could you please help me? Thank you.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Similar to Figure 1, I want to achieve full coverage for irregular regions by using Voronoi diagrams to segment the entire irregular region before conducting coverage research. The irregular area I want is similar to Figure 2

figure 1

figure2
0 commentaires
Réponses (1)
Shlok
le 29 Mai 2025
Hi,
I understand that you want to achieve full coverage of an irregular region using Voronoi diagrams.
A possible approach would be to first define the irregular region as a polygon using "polyshape". Then generate a set of points inside that region which will act as Voronoi seed points. After generating the Voronoi diagram using "voronoin", you’ll need to clip each Voronoi cell to the irregular boundary using "intersect" with the polygon. Hence, this way, each sub-region is confined to the area of interest while still preserving the spatial structure of a Voronoi tessellation.
To know more about the above mentioned functions, refer to the following MathWorks documentation links::
0 commentaires
Voir également
Catégories
En savoir plus sur Voronoi Diagram dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!