Added better layer names
parent
e7cb1856e0
commit
46dfb808f4
2
main.js
2
main.js
|
@ -114,7 +114,7 @@ function setLinkOpacity(o, primary) {
|
|||
}
|
||||
}
|
||||
|
||||
let gui; //
|
||||
let gui;
|
||||
|
||||
|
||||
function changeShape() {
|
||||
|
|
14
polytopes.js
14
polytopes.js
|
@ -359,6 +359,16 @@ function link_labels(nodes, link) {
|
|||
// layer and the links follow that
|
||||
|
||||
export const cell120_layered = (max) => {
|
||||
const LAYER_NAMES = {
|
||||
0: "North pole",
|
||||
1: "Arctic circle",
|
||||
2: "North temperate",
|
||||
3: "Tropic of Cancer",
|
||||
4: "Equator",
|
||||
5: "Tropic of Capricorn",
|
||||
6: "South temperate",
|
||||
7: "Antarctic circle (all)"
|
||||
};
|
||||
const nodes = make_120cell_vertices();
|
||||
const links = auto_detect_edges(nodes, 4);
|
||||
|
||||
|
@ -382,8 +392,8 @@ export const cell120_layered = (max) => {
|
|||
|
||||
for( const i of [ 0, 1, 2, 3, 4, 5, 6, 7 ] ) {
|
||||
layers.push(i);
|
||||
options.unshift({
|
||||
name: "Layer " + String(i),
|
||||
options.push({
|
||||
name: LAYER_NAMES[i],
|
||||
links: [...layers],
|
||||
nodes: [...layers]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue