From 303a2971fea9a244c8130a8867f2302338e22bb4 Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Wed, 26 Nov 2025 19:05:46 +1100 Subject: [PATCH] Brought some ui stuff from another branch --- cellindex.js | 7 ++++++- polytopes.js | 12 +++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/cellindex.js b/cellindex.js index d2d1ca6..520118f 100644 --- a/cellindex.js +++ b/cellindex.js @@ -107,7 +107,12 @@ export const LAYERS120 = { // just one for now export const CELL120_CELL5 = { - "1": [ 1, 258, 304, 431, 510 ] + "1": [ 1, 258, 304, 431, 510 ], + "2": [ 1, 260, 302, 427, 506 ], + "3": [1, 264, 298, 435, 514], + "4": [1, 330, 334, 387, 391], + "5": [1, 491, 503, 574, 578], + "6": [1, 495, 499, 570, 582 ], }; // Schoute's partition via https://arxiv.org/abs/1010.4353 diff --git a/polytopes.js b/polytopes.js index ba89d76..89d7e2f 100644 --- a/polytopes.js +++ b/polytopes.js @@ -471,11 +471,13 @@ export const cell120_inscribed_cell5 = () => { links.map((l) => l.label = 0); - const nodes5 = nodes.filter((n) => CELLINDEX.CELL120_CELL5["1"].includes(n.id)); - console.log(`node5 = ${nodes5}`); - const links5 = auto_detect_edges(nodes5, 4); - links5.map((l) => l.label = 1); - links.push(...links5); + for( const c5 in CELLINDEX.CELL120_CELL5 ) { + const nodes5 = nodes.filter((n) => CELLINDEX.CELL120_CELL5[c5].includes(n.id)); + console.log(`node5 = ${nodes5}`); + const links5 = auto_detect_edges(nodes5, 4); + links5.map((l) => l.label = c5); + links.push(...links5); + } return { name: '120-cell-5-cell',