% % Edge matrices and vertices for regular solids % % simplex V = [0 0 0; 1 0 0; 0 1 0; 0 0 1]; B = [1 2; 1 3; 1 4; 2 3; 2 4; 3 4]; % tetrahedron V = [0 0 0; 1 0 0; 1/2,sqrt(3)/2,0; 1/2,sqrt(3)/6,sqrt(2/3)]; B = [1 2; 1 3; 1 4; 2 3; 2 4; 3 4]; % cube V = [0 0 0; 1 0 0; 1 1 0; 0 1 0; 0 0 1; 1 0 1; 1 1 1; 0 1 1]; B = [1 2; 2 3; 3 4; 4 1; 1 5; 2 6; 3 7; 4 8; 5 6; 6 7; 7 8; 8 5]; B = [B;1 3;1 8;6 8;1 6;3 6;3 8]; % brace sides B = [B;1 7; 2 8; 3 5; 4 6]; % brace diagonals % octahedron V = [1 0 0; 0 1 0; -1 0 0; 0,-1 0; 0 0,sqrt(2); 0 0,-sqrt(2)] B = [1 2; 2 3; 3 4; 4 1; 1 5; 2 5; 3 5; 4 5; 1 6; 2 6; 3 6; 4 6]