From 128788c490313960c4f501077b160126bc64e985 Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Thu, 5 Feb 2026 08:32:28 +1100 Subject: [PATCH] Finised the second layer --- cellindex.js | 25 ++++++++++++++++++++++++- label_inscribed_600cell.js | 17 ++++++++++++----- polytopes.js | 4 ++-- 3 files changed, 38 insertions(+), 8 deletions(-) diff --git a/cellindex.js b/cellindex.js index 325e490..5dff132 100644 --- a/cellindex.js +++ b/cellindex.js @@ -105,6 +105,8 @@ export const LAYERS120 = { }; export const CELL600_METAMAP = { + 27: 1, + 419: 41, 223: 49, 253: 45, @@ -116,7 +118,28 @@ export const CELL600_METAMAP = { 473: 111, 539: 55, 555: 43, - 393: 47 + 393: 47, + + 367: 97, + 131: 101, + 499: 17, + 179: 33, + 471: 9, + 165: 13, + 449: 21, + 258: 93, + 274: 35, + 95: 89, + 347: 91, + 313: 37, + 185: 95, + 140: 19, + 527: 11, + 105: 39, + 585: 23, + 306: 103, + 207: 99, + 573: 15, }; export const CELL120_CELL5 = { diff --git a/label_inscribed_600cell.js b/label_inscribed_600cell.js index e0def94..600fc11 100644 --- a/label_inscribed_600cell.js +++ b/label_inscribed_600cell.js @@ -143,8 +143,8 @@ export function layer_neighbours(cell600, layer) { } } -export function layer_two(cell600) { - const faces = [ + +const ARCTIC_I_FACES = [ [ 419, 223, 253 ], [ 419, 253, 331 ], [ 419, 331, 427 ], @@ -165,14 +165,21 @@ export function layer_two(cell600) { [ 393, 539, 473 ], [ 393, 555, 539 ], [ 393, 555, 511 ] - ]; +]; + +export const ARCTIC_FACES = ARCTIC_I_FACES.map((f) => { + return f.map((nid) => CELLINDEX.CELL600_METAMAP[nid]); +}); + + +export function layer_two(cell600, centre, faces) { for ( const face of faces ) { const n2 = face_vertices(cell600, face[0], face[1], face[2]); - //console.log(face); - console.log(n2.filter((n) => n !== 27)[0]); + console.log(face, n2); } } + /*const cell600 = make_one_600cell(); diff --git a/polytopes.js b/polytopes.js index 1f25c0e..a421370 100644 --- a/polytopes.js +++ b/polytopes.js @@ -613,7 +613,7 @@ export const cell120_test_metamap = () => { label_nodes(nodes, CELLINDEX.INDEX120[cstr], Number(cstr)); } - links.map((l) => l.label = 0); + links.map((l) => l.label = 6); const mm = CELLINDEX.CELL600_METAMAP; const mm_ids = Object.keys(mm).map((i) => Number(i)); @@ -638,7 +638,7 @@ export const cell120_test_metamap = () => { const n600 = o600.nodes.filter((n) => n.id === mapid); n.label = n600[0].label; } else { - n.label = 0; + n.label = 6; } });