Added manual coherent indexing for 16-cell

experiments-120-cell
Mike Lynch 2023-08-04 16:55:19 +10:00
parent ec56fdd75b
commit a076427af3
1 changed files with 10 additions and 0 deletions

View File

@ -90,6 +90,16 @@ export const cell5 = () => {
export const cell16 = () => {
let nodes = PERMUTE.coordinates([1, 1, 1, 1], 0);
nodes = nodes.filter((n) => n.x * n.y * n.z * n.w > 0);
nodes[0].label = 0;
nodes[3].label = 1;
nodes[5].label = 2;
nodes[6].label = 3;
nodes[7].label = 0;
nodes[4].label = 1;
nodes[2].label = 2;
nodes[1].label = 3;
index_nodes(nodes);
scale_nodes(nodes, 0.75);
const links = auto_detect_edges(nodes, 6);