From 264aa5e497c1502fea584368810795fbad18a0cd Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Thu, 1 Jan 2026 15:55:15 +1100 Subject: [PATCH] Interim visualisation of 4 5-cells and their tetrahedra --- cellindex.js | 16 ++++++++++++++-- polytopes.js | 16 ++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/cellindex.js b/cellindex.js index 4a07c10..14bc29c 100644 --- a/cellindex.js +++ b/cellindex.js @@ -105,8 +105,20 @@ export const LAYERS120 = { }; export const CELL120_CELL5 = { - "1": [ 1, 93, 37, 157 ], -} + "tetras": { + "1": [ 27, 223, 253, 419 ], + "2": [ 28, 76, 44, 112 ], + "3": [ 264, 238, 283, 197 ], + "4": [ 309, 84, 304, 578 ], + "5": [ 275, 225, 42, 521 ], + }, + "cell5s": { + "1": [ 27, 28, 264, 309, 275 ], + "2": [ 223, 76, 238, 84, 225 ], + "3": [ 253, 44, 283, 304, 42 ], + "4": [ 419, 112, 197, 578, 521 ], + }, +}; // Schoute's partition via https://arxiv.org/abs/1010.4353 diff --git a/polytopes.js b/polytopes.js index cc26b25..deb632d 100644 --- a/polytopes.js +++ b/polytopes.js @@ -480,13 +480,25 @@ export const cell120_inscribed_cell5 = () => { links.push(...links600); } -*/ for( const c5 in CELLINDEX.CELL120_CELL5 ) { - const nodes5 = nodes.filter((n) => CELLINDEX.CELL120_CELL5[c5].includes(n.id)); +*/ const TETRAS = CELLINDEX.CELL120_CELL5.tetras; + const CELL5S = CELLINDEX.CELL120_CELL5.cell5s; + + for( const t in TETRAS ) { + const nodes5 = nodes.filter((n) => TETRAS[t].includes(n.id)); const links5 = auto_detect_edges(nodes5, 4); + links5.map((l) => l.label = t); + links.push(...links5); + } + + for( const c5 in CELL5S ) { + const nodes5 = nodes.filter((n) => CELL5S[c5].includes(n.id)); + const links5 = auto_detect_edges(nodes5, 5); links5.map((l) => l.label = 0); links.push(...links5); } + + return { name: '120-cell-5-cell', nodes: nodes,