%% Incenters of Delaunay Triangulation
% Create a 2-D triangulation with DelaunayTri.

x = [0 1 1 0 0.5]';
y = [0 0 1 1 0.5]';
dt = DelaunayTri(x,y);

%
% Compute the incenters of the triangles.

ic = incenters(dt);

%
% Plot the triangles and incenters.

triplot(dt)
axis equal
axis([-0.2 1.2 -0.2 1.2])
hold on
plot(ic(:,1),ic(:,2),'*r')
hold off

% Copyright 2020 The MathWorks, Inc.