Next layer is done
This commit is contained in:
parent
e809e72083
commit
93d8a31f71
15
cellindex.js
15
cellindex.js
@ -140,6 +140,21 @@ export const CELL600_METAMAP = {
|
|||||||
306: 103,
|
306: 103,
|
||||||
207: 99,
|
207: 99,
|
||||||
573: 15,
|
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 = {
|
export const CELL120_CELL5 = {
|
||||||
|
|||||||
@ -136,8 +136,6 @@ export function face_vertices(shape, f1, f2, f3) {
|
|||||||
|
|
||||||
|
|
||||||
export function shared_neighbours(shape, nodes) {
|
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);
|
let ns = shape.nodes.map((n) => n.id);
|
||||||
for( const n of nodes ) {
|
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]);
|
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) {
|
export function layer_two(cell600, centre, faces) {
|
||||||
|
|
||||||
@ -194,7 +211,16 @@ export function layer_two(cell600, centre, faces) {
|
|||||||
console.log(face, n2);
|
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();
|
/*const cell600 = make_one_600cell();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user