Voronoi Diagrams Flashcards
1
Q
What’s a Voronoi diagram?
A
A diagram that breaks up a space into regions closest to a set of points.
2
Q
What are the steps to draw a Voronoi Diagram?
A
- Choose a site to start with.
- Draw the perpendicular bisector between this site and each of it’s neighbors neighbor.
- Starting at the edge of the whole diagram, trace along your lines to outline the boundaries of the cell.
- Erase the extra part of the lines that you don’t need for the boundary of the cell.
- Keep repeating this process for each site.
3
Q
How do you find the line that separates two sites?
A
It’s a perpendicular bisector.
- Find the midpoint of the two given points.
- Find the gradient between the two given points.
- Identify the gradient of the perpendicular bisector. (The negative reciprocal of what you found in step 2.)
- Substitute the gradient info into formula for a straight line.
- Next substitute your midpoint in for x and y and solve for b.
- Write the equation of the line in the form , but use your values for m and b.
4
Q
What is the significance of a cell?
A
Every point in the cell is closer to that site than any other site.
5
Q
How would you find the coordinates of A?
A
- Find the equation of the line that connects A and B.
- Find the intersection of this new line and the one given. (This will be the midpoint between A and B.)
- Use the x-coordinates from B and M in the midpoint formula to find the x-coordinate of A.
- Use the y-coordinates from B and M in the midpoint formula to find the y-coordinate of A.
6
Q
If you want to add another point to a Voronoi diagram that is “the furthest from all existing sites”, where should it go?
A
It should go at the vertex between the existing sites.