Code covered by the BSD License  

Highlights from
FELICITY

image thumbnail

FELICITY

by

 

21 Apr 2011 (Updated )

Finite ELement Implementation and Computational Interface Tool for You

Get_Global_Edge_List(Tri)
function Edges = Get_Global_Edge_List(Tri)
%Get_Global_Edge_List
%
%   This computes a unique global list of edges in the triangulation.

% Copyright (c) 12-01-2010,  Shawn W. Walker

% SWW: can use TriRep.edges instead!

% all triangle edge list (sorted in each individual row)
Edges = [sort(Tri(:,[2 3]),2);sort(Tri(:,[3 1]),2);sort(Tri(:,[1 2]),2)];
% remove duplicates and sort by rows
Edges = unique(Edges,'rows');

end

Contact us