First glimpse of the inscribed 5-cells in the 120-cell

This commit is contained in:
Mike Lynch 2025-11-23 10:26:02 +11:00
parent 0c45aeba9b
commit 6ae5c7938f
3 changed files with 35 additions and 2 deletions

View File

@ -104,6 +104,12 @@ export const LAYERS120 = {
163,219,271,223,167]
};
// just one for now
export const CELL120_CELL5 = {
"1": [ 1, 258, 304, 431, 510 ]
};
// Schoute's partition via https://arxiv.org/abs/1010.4353
export const PARTITION600 = {

View File

@ -69,7 +69,6 @@ link_ms.map((m) => {
);
const face_ms = [
new THREE.MeshStandardMaterial( { color: 0x44ff44 } )
];

View File

@ -461,6 +461,34 @@ export const cell120_inscribed = () => {
export const cell120_inscribed_cell5 = () => {
const nodes = make_120cell_vertices();
const links = auto_detect_edges(nodes, 4);
for( const cstr in CELLINDEX.INDEX120 ) {
label_nodes(nodes, CELLINDEX.INDEX120[cstr], Number(cstr));
}
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);
return {
name: '120-cell-5-cell',
nodes: nodes,
links: links,
options: [
{ name: "none", links: [ 0 ]},
{ name: "one inscribed 5-cell", links: [ 0, 1 ] },
],
description: `The 120-cell with one of its 5-cells.`,
}
}
function partition_coord(i, coords, invert) {
@ -864,7 +892,6 @@ export const icosahedron = () => {
export const build_all = () => {
return [
linkTest(),
tetrahedron(),
octahedron(),
cube(),
@ -878,6 +905,7 @@ export const build_all = () => {
cell600(),
cell600_layered(),
cell120_inscribed(),
cell120_inscribed_cell5(),
cell120_layered()
];
}