How can I plot a voronoi diagram with a limited area?
조회 수: 9 (최근 30일)
이전 댓글 표시
Hello people, I want some ideas on how to visualize a 3D plot of a voronoi, using voronoin, but I want to see also the unbounded cells, trying to put the diagram inside a box. How can I do it?
Thank you in advance.
댓글 수: 1
Bruno Lopes
2022년 2월 20일
You can use this code: https://it.mathworks.com/matlabcentral/fileexchange/34428-voronoilimit-varargin
It is the best I found on the internet.
답변 (1개)
Preetham Manjunatha
2022년 2월 9일
If the Voronoi Diagram bounded region is rectangle or square, here is the link function to clip the extending edges of the Voronoi Diagram for rectangular/ 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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Voronoi Diagram에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!