%% Voronoi Diagram of 2-D Points
% Create a 2-D Delaunay triangulation.

X = [ 0.5    0
      0      0.5
     -0.5   -0.5
     -0.2   -0.1
     -0.1    0.1
      0.1   -0.1
      0.1    0.1 ];
dt = DelaunayTri(X);

% Compute the Voronoi Diagram of the set of points.

[V,R] = voronoiDiagram(dt)

% Copyright 2020 The MathWorks, Inc.