fc06d37Bead-and-spring percussion simulator: numbl-scripted setup, Verlet/Yoshida solver with exact damping, linear modes, browser appJeremy Magland 1function E = bp_edges(tri)
2% BP_EDGES Unique bead pairs (edges) of a triangle list.
3% E = bp_edges(tri) returns an m-by-2 matrix with E(:,1) < E(:,2).
4E = sort([tri(:, [1 2]); tri(:, [2 3]); tri(:, [3 1])], 2);
5E = unique(E, 'rows');
6end