/ proof-of-concept / bead-percussion
Sign in
proof-of-concept / bead-percussion
bead-percussion / matlab / helpers / bp_edges.m
6 lines · 240 BBlameHistoryRaw
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
↑↓ move↵openescclose