Interim visualisation of 4 5-cells and their tetrahedra
This commit is contained in:
parent
878209ab41
commit
264aa5e497
16
cellindex.js
16
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
|
||||
|
||||
16
polytopes.js
16
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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user