/
proof-of-concept
/
bead-percussion
Jump to
/
Appearance
Match my system
Paper
GitHub
Slate
Midnight
Terminal
Sign in
proof-of-concept
/
bead-percussion
Code
Commits
Issues
0
Pull requests
0
Branches
1
Tags
0
fc06d37
Branches
main
bead-percussion
/
matlab
/
helpers
/
bp_edges.m
6 lines · 240 B
Copy
Copied
Blame
History
Raw
1
function 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
).
4
E = sort([tri(:, [
1
2
]); tri(:, [
2
3
]); tri(:, [
3
1
])],
2
);
5
E = unique(E,
'rows'
);
6
end
↑
↓
move
↵
open
esc
close