A simple algorithm for 2D Voronoi diagrams

  Рет қаралды 3,537

Edgar Programmator

Edgar Programmator

9 ай бұрын

In this video we will learn a simple algorithm for generating Voronoi diagrams. Given a set of points on the plane, the idea is to create, for each point, a polygon that encloses the region of the plane that is closest to that point.
Voronoi diagrams are a type of spatial partitioning diagram that divide a plane into regions based on the distance to a set of points. They are used in a variety of applications, including computer graphics, image processing, and machine learning.
By the end of this video, you will be able to understand and implement the Voronoi diagram algorithm in your own code.
Pseudocode (short version): gist.github.com/isedgar/d4452...
Pseudocode (long version): gist.github.com/isedgar/adbf6...
JavaScript code: gist.github.com/isedgar/ac26c...
/ edgardocpu

Пікірлер: 11
@aleksandrstukalov
@aleksandrstukalov 3 ай бұрын
This is an awesome explanation of the algorithm! Thank you for sharing such a helpful content!❤❤❤
@kifiansy
@kifiansy 9 күн бұрын
what the name of application do you use?
@shihyuehjan3835
@shihyuehjan3835 2 ай бұрын
Thank you so much for the video!
@unveil7762
@unveil7762 Ай бұрын
This is very cool thank you
@tedlorance6968
@tedlorance6968 2 ай бұрын
Out of curiosity, is there a known or best-guess optimal or near-optimal value for the padding in the algorithm? Perhaps related to the mean distance between the sites?
@gutzimmumdo4910
@gutzimmumdo4910 2 ай бұрын
what's the time complexity of this algo?
@uncleole503
@uncleole503 Ай бұрын
this is very different from Fortune's algorithm
@jcaceres149
@jcaceres149 13 күн бұрын
However, this algorithm is not optimal in the worst case, and it does not deal with unbounded Voronoi cells
@aleksandrstukalov
@aleksandrstukalov 3 ай бұрын
Is there any research paper that you took this algorithm from?
@EdgarProgrammator
@EdgarProgrammator 3 ай бұрын
No, I couldn't find an easy, step-by-step algorithm for building Voronoi diagrams (unlike Delaunay triangulation algorithms, which are easy to find). That's why I created this video.
@Kewargs
@Kewargs Ай бұрын
​@@EdgarProgrammatorWhat about the Fortune sweep algorithm?
Cubic interpolation between 2D points
2:18
Edgar Programmator
Рет қаралды 330
Voronoi Diagrams and Procedural Map Generation
15:36
MAN OF EERIE LETTERS
Рет қаралды 38 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 11 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 30 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 30 МЛН
Why this pattern shows up everywhere in nature || Voronoi Cell Pattern
14:36
I Cracked The Code Behind Nature! ( Voronoi Diagram Explanation )
11:10
How 2D Game Collision Works (Separating Axis Theorem)
7:29
What is Voronoi Noise?
6:38
Suboptimal Engineer
Рет қаралды 7 М.
How To Write Fast Shaders
10:33
Jump Trajectory
Рет қаралды 18 М.
Voronoi Diagram (4/5) | Computational Geometry - Lecture 07
10:09
Philipp Kindermann
Рет қаралды 13 М.
What is...Fortune’s algorithm?
10:44
VisualMath
Рет қаралды 2,9 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,3 МЛН