A simple algorithm for 2D Voronoi diagrams

  Рет қаралды 4,576

Edgar Programmator

Edgar Programmator

Күн бұрын

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.co...
Pseudocode (long version): gist.github.co...
JavaScript code: gist.github.co...
/ edgardocpu

Пікірлер: 11
@aleksandrstukalov
@aleksandrstukalov 5 ай бұрын
This is an awesome explanation of the algorithm! Thank you for sharing such a helpful content!❤❤❤
@shihyuehjan3835
@shihyuehjan3835 3 ай бұрын
Thank you so much for the video!
@unveil7762
@unveil7762 3 ай бұрын
This is very cool thank you
@starplatinum3305
@starplatinum3305 Ай бұрын
Amazing
@tedlorance6968
@tedlorance6968 4 ай бұрын
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?
@uncleole503
@uncleole503 2 ай бұрын
this is very different from Fortune's algorithm
@gutzimmumdo4910
@gutzimmumdo4910 4 ай бұрын
what's the time complexity of this algo?
@jcaceres149
@jcaceres149 2 ай бұрын
However, this algorithm is not optimal in the worst case, and it does not deal with unbounded Voronoi cells
@aleksandrstukalov
@aleksandrstukalov 4 ай бұрын
Is there any research paper that you took this algorithm from?
@EdgarProgrammator
@EdgarProgrammator 4 ай бұрын
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 3 ай бұрын
​@@EdgarProgrammatorWhat about the Fortune sweep algorithm?
Cubic interpolation between 2D points
2:18
Edgar Programmator
Рет қаралды 407
Voronoi Diagrams and Procedural Map Generation
15:36
MAN OF EERIE LETTERS
Рет қаралды 38 М.
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 6 МЛН
小丑把天使丢游泳池里#short #angel #clown
00:15
Super Beauty team
Рет қаралды 41 МЛН
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 49 МЛН
How do vector field Pathfinding algorithm work ?
7:12
PDN - PasDeNom
Рет қаралды 31 М.
Why this pattern shows up everywhere in nature || Voronoi Cell Pattern
14:36
Gradient Descent Algorithm: How Machines Learn
8:32
0Mean1Sigma
Рет қаралды 1,3 М.
The hidden beauty of the A* algorithm
19:22
Polylog
Рет қаралды 856 М.
Coding Challenge 181: Weighted Voronoi Stippling
28:59
The Coding Train
Рет қаралды 162 М.
The BEST Way to Find a Random Point in a Circle | #SoME1 #3b1b
18:35
GEO1015 -- Triangulations & Voronoi diagram
17:23
Hugo Ledoux
Рет қаралды 31 М.
How Voronoi Diagrams Can Speed Up Your Game - Advanced Gamedev
16:23
GOOGLE PIXEL 9 против iPHONE 15: ЭТО ЖЕСТЬ!
25:42
Арсений Петров
Рет қаралды 53 М.
POV: You Find a 🗑️ Full of iPhones ⭐
0:13
Shakeuptech
Рет қаралды 1,4 МЛН
Samsung vs iPhone ☠️ #shorts
0:18
My Tech
Рет қаралды 15 МЛН
Google Pixel 9/Pro/Fold Impressions: They've Finally Done It?
13:25
Marques Brownlee
Рет қаралды 6 МЛН
Сделал из зарядного устройства нечто!
0:48
ГОТОВЫЙ ПК с OZON за 5000 рублей
20:24
Ремонтяш
Рет қаралды 320 М.
Электронный звонок #shorts
0:26
TheBestBike
Рет қаралды 346 М.