%% 3-D Triangulation
% Load 2-D triangulation data and create a triangulation representation.

load tetmesh
TR = triangulation(tet,X);

%
% Select two edges by their starting and ending vertex identifications.

startID = [15; 21];
endID = [936; 716];

%
% Find the edge attachments, and examine the identifications of the triangles attached to each edge.

ID = edgeAttachments(TR,startID,endID);
ID{1}
ID{2}

% Copyright 2012 The MathWorks, Inc.