diff --git a/cellindex.js b/cellindex.js index 5dff132..b963a6b 100644 --- a/cellindex.js +++ b/cellindex.js @@ -140,6 +140,21 @@ export const CELL600_METAMAP = { 306: 103, 207: 99, 573: 15, + + 565: 25, + 513: 29, + 285: 77, + 324: 61, + 231: 57, + 487: 73, + 413: 59, + 425: 63, + 378: 79, + 388: 27, + 543: 75, + 289: 31, + + }; export const CELL120_CELL5 = { diff --git a/label_inscribed_600cell.js b/label_inscribed_600cell.js index d2b3910..2304239 100644 --- a/label_inscribed_600cell.js +++ b/label_inscribed_600cell.js @@ -136,8 +136,6 @@ export function face_vertices(shape, f1, f2, f3) { export function shared_neighbours(shape, nodes) { - // for f1/f2/f3 forming a triangular face, return the two vertices of the - // adjacent tetrahedra let ns = shape.nodes.map((n) => n.id); for( const n of nodes ) { @@ -186,6 +184,25 @@ export const ARCTIC_FACES = ARCTIC_I_FACES.map((f) => { return f.map((nid) => CELLINDEX.CELL600_METAMAP[nid]); }); +export const TEMPERATE_PENTAGONS_I = [ + [ 499, 179, 471, 367, 131 ], + [ 131, 367, 165, 313, 449 ], + [ 131, 449, 185, 258, 499 ], + [ 499, 258, 140, 274, 179 ], + [ 179, 274, 527, 95, 471 ], + [ 471, 95, 347, 165, 367 ], + [ 347, 573, 105, 313, 165 ], + [ 313, 105, 585, 185, 449 ], + [ 185, 585, 306, 140, 258 ], + [ 140, 306, 207, 527, 274 ], + [ 527, 207, 573, 347, 95 ], + [ 105, 573, 207, 306, 585 ], +] + +export const TEMPERATE_PENTAGONS = TEMPERATE_PENTAGONS_I.map((f) => { + return f.map((nid) => CELLINDEX.CELL600_METAMAP[nid]) +}); + export function layer_two(cell600, centre, faces) { @@ -194,7 +211,16 @@ export function layer_two(cell600, centre, faces) { console.log(face, n2); } } - + + +export function layer_three(shape, pentagons) { + for ( const pentagon of pentagons ) { + console.log(pentagon); + const s = shared_neighbours(shape, pentagon); + console.log(s); + console.log("\n"); + } +} /*const cell600 = make_one_600cell();