Finised the second layer
This commit is contained in:
parent
0ef3263b32
commit
128788c490
25
cellindex.js
25
cellindex.js
@ -105,6 +105,8 @@ export const LAYERS120 = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const CELL600_METAMAP = {
|
export const CELL600_METAMAP = {
|
||||||
|
27: 1,
|
||||||
|
|
||||||
419: 41,
|
419: 41,
|
||||||
223: 49,
|
223: 49,
|
||||||
253: 45,
|
253: 45,
|
||||||
@ -116,7 +118,28 @@ export const CELL600_METAMAP = {
|
|||||||
473: 111,
|
473: 111,
|
||||||
539: 55,
|
539: 55,
|
||||||
555: 43,
|
555: 43,
|
||||||
393: 47
|
393: 47,
|
||||||
|
|
||||||
|
367: 97,
|
||||||
|
131: 101,
|
||||||
|
499: 17,
|
||||||
|
179: 33,
|
||||||
|
471: 9,
|
||||||
|
165: 13,
|
||||||
|
449: 21,
|
||||||
|
258: 93,
|
||||||
|
274: 35,
|
||||||
|
95: 89,
|
||||||
|
347: 91,
|
||||||
|
313: 37,
|
||||||
|
185: 95,
|
||||||
|
140: 19,
|
||||||
|
527: 11,
|
||||||
|
105: 39,
|
||||||
|
585: 23,
|
||||||
|
306: 103,
|
||||||
|
207: 99,
|
||||||
|
573: 15,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CELL120_CELL5 = {
|
export const CELL120_CELL5 = {
|
||||||
|
|||||||
@ -143,8 +143,8 @@ export function layer_neighbours(cell600, layer) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function layer_two(cell600) {
|
|
||||||
const faces = [
|
const ARCTIC_I_FACES = [
|
||||||
[ 419, 223, 253 ],
|
[ 419, 223, 253 ],
|
||||||
[ 419, 253, 331 ],
|
[ 419, 253, 331 ],
|
||||||
[ 419, 331, 427 ],
|
[ 419, 331, 427 ],
|
||||||
@ -165,14 +165,21 @@ export function layer_two(cell600) {
|
|||||||
[ 393, 539, 473 ],
|
[ 393, 539, 473 ],
|
||||||
[ 393, 555, 539 ],
|
[ 393, 555, 539 ],
|
||||||
[ 393, 555, 511 ]
|
[ 393, 555, 511 ]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const ARCTIC_FACES = ARCTIC_I_FACES.map((f) => {
|
||||||
|
return f.map((nid) => CELLINDEX.CELL600_METAMAP[nid]);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
export function layer_two(cell600, centre, faces) {
|
||||||
|
|
||||||
for ( const face of faces ) {
|
for ( const face of faces ) {
|
||||||
const n2 = face_vertices(cell600, face[0], face[1], face[2]);
|
const n2 = face_vertices(cell600, face[0], face[1], face[2]);
|
||||||
//console.log(face);
|
console.log(face, n2);
|
||||||
console.log(n2.filter((n) => n !== 27)[0]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*const cell600 = make_one_600cell();
|
/*const cell600 = make_one_600cell();
|
||||||
|
|||||||
@ -613,7 +613,7 @@ export const cell120_test_metamap = () => {
|
|||||||
label_nodes(nodes, CELLINDEX.INDEX120[cstr], Number(cstr));
|
label_nodes(nodes, CELLINDEX.INDEX120[cstr], Number(cstr));
|
||||||
}
|
}
|
||||||
|
|
||||||
links.map((l) => l.label = 0);
|
links.map((l) => l.label = 6);
|
||||||
|
|
||||||
const mm = CELLINDEX.CELL600_METAMAP;
|
const mm = CELLINDEX.CELL600_METAMAP;
|
||||||
const mm_ids = Object.keys(mm).map((i) => Number(i));
|
const mm_ids = Object.keys(mm).map((i) => Number(i));
|
||||||
@ -638,7 +638,7 @@ export const cell120_test_metamap = () => {
|
|||||||
const n600 = o600.nodes.filter((n) => n.id === mapid);
|
const n600 = o600.nodes.filter((n) => n.id === mapid);
|
||||||
n.label = n600[0].label;
|
n.label = n600[0].label;
|
||||||
} else {
|
} else {
|
||||||
n.label = 0;
|
n.label = 6;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user