%% Find Triangles Attached to Edge
% Create a triangulation with DelaunayTri.

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

%
% Query the triangles attached to edge (1,5).

t = edgeAttachments(dt,1,5);
t{:}

% Copyright 2020 The MathWorks, Inc.