Demonstrate the Voronoi Diagram of 3 Points

VORONOI_CITY, a MATLAB program which displays the steps involved in computing the Voronoi diagram of 3 points, which we think of as 3 cities connected by roads.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


VORONOI_CITY is available in a MATLAB version.

Related Data and Programs:


VORONOI_DISPLAY, a MATLAB program which computes the exact Voronoi diagram using geompack(), and displays it.

VORONOI_MOUNTAINS, a MATLAB program which makes a mountain plot of a Voronoi diagram, that is, a surface plot of the distance from each point to its nearest Voronoi generator.

VORONOI_NEIGHBORS, a MATLAB program which is given a set of points in the plane and determines the Voronoi adjacency structure, that is, which points share an edge of the Voronoi diagram.

VORONOI_PLOT, a MATLAB program which plots the Voronoi neighborhoods of points using L1, L2, LInfinity or arbitrary LP norms;

VORONOI_WEIGHT, a FORTRAN90 program which estimates the volume of the Voronoi cells associated with N points in the M dimensional unit hypercube;


  1. Franz Aurenhammer,
    Voronoi diagrams - a study of a fundamental geometric data structure,
    ACM Computing Surveys,
    Volume 23, Number 3, pages 345-405, September 1991.

Source Code:

Last revised on 19 February 2019.