Restored the original 120-cell with inscribed 5-cell

This commit is contained in:
Mike Lynch 2026-02-11 12:02:26 +11:00
parent 9ade532860
commit 44d3e0da8a

View File

@ -527,15 +527,14 @@ export const cell120_inscribed_cell5 = () => {
const nids = []; const nids = [];
for( const c5 in CELL5S ) { for( const c5 in CELL5S ) {
if( CELL5S[c5].label === 3 ) {
const nodes5 = nodes.filter((n) => CELL5S[c5].nodes.includes(n.id)); const nodes5 = nodes.filter((n) => CELL5S[c5].nodes.includes(n.id));
const links5 = auto_detect_edges(nodes5, 5); const links5 = auto_detect_edges(nodes5, 5);
links5.map((l) => l.label = CELL5S[c5].label); links5.map((l) => l.label = CELL5S[c5].label);
nodes5.map((n) => n.label = CELL5S[c5].label);
linksc5s.push(...links5); linksc5s.push(...links5);
nodesc5s.push(...nodes5); nodesc5s.push(...nodes5);
nids.push(...nodes5.map((n) => n.id)); nids.push(...nodes5.map((n) => n.id));
} }
}
const links120 = links.filter((l) => nids.includes(l.source) && nids.includes(l.target)); const links120 = links.filter((l) => nids.includes(l.source) && nids.includes(l.target));
return { return {
@ -543,12 +542,12 @@ export const cell120_inscribed_cell5 = () => {
nodes: nodesc5s, nodes: nodesc5s,
links: [...linksc5s, ...links120], links: [...linksc5s, ...links120],
options: [ options: [
// { name: "all", links: [0, 1, 2, 3, 4, 5] }, { name: "all", links: [0, 1, 2, 3, 4, 5] },
{ name: "24", links: [0, 3 ] }, { name: "24", links: [0, 3 ] },
// { name: "48", links: [0, 1, 2 ] }, { name: "48", links: [0, 1, 2 ] },
// { name: "72", links: [0, 1, 2, 3 ] }, { name: "72", links: [0, 1, 2, 3 ] },
{ name: "96", links: [0, 1, 2, 3, 4 ] }, { name: "96", links: [0, 1, 2, 3, 4 ] },
// { name: "hide 1200-cell", links: [ 1, 2, 3, 4, 5 ] }, { name: "hide 120-cell links", links: [ 1, 2, 3, 4, 5 ] },
], ],
description: `The vertices of the 120-cell can also be partitioned description: `The vertices of the 120-cell can also be partitioned
into 120 5-cells: each 5-cell has one vertex in each of the five into 120 5-cells: each 5-cell has one vertex in each of the five