Definition Consider a set of coplanar points .
For each point in the set , you can draw a boundary enclosing all the intermediate points lying closer to than to other points in the set . Such a boundary is called a Voronoi polygon , and the set of all Voronoi polygons for a given point set is called a Voronoi diagram . Cells that contain a point at infinity are unbounded and are not plotted. Note For the topology of the Voronoi diagram, i.e., the vertices for each Voronoi cell, use voronoin . If you provide no output argument, voronoi plots the diagram.