First glimpse of the inscribed 5-cells in the 120-cell
This commit is contained in:
parent
0c45aeba9b
commit
6ae5c7938f
@ -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 = {
|
||||
|
||||
1
main.js
1
main.js
@ -69,7 +69,6 @@ link_ms.map((m) => {
|
||||
);
|
||||
|
||||
|
||||
|
||||
const face_ms = [
|
||||
new THREE.MeshStandardMaterial( { color: 0x44ff44 } )
|
||||
];
|
||||
|
||||
30
polytopes.js
30
polytopes.js
@ -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()
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user