Made all shapes have the same thickness

feature-faces
Mike Lynch 2023-07-30 17:56:01 +10:00
parent c2ac5d7928
commit f4ec6d403e
2 changed files with 11 additions and 11 deletions

2
gui.js
View File

@ -32,7 +32,7 @@ class FourDGUI {
).onChange(createShape) ).onChange(createShape)
this.gui.add(this.params, 'hyperplane', 1.5, 4); this.gui.add(this.params, 'hyperplane', 1.5, 4);
this.gui.add(this.params, 'thickness', 0.01, 4); this.gui.add(this.params, 'thickness', 0.1, 4);
this.gui.addColor(this.params, 'color').onChange(setColor); this.gui.addColor(this.params, 'color').onChange(setColor);
this.gui.addColor(this.params, 'background').onChange(setBackground); this.gui.addColor(this.params, 'background').onChange(setBackground);
this.gui.add(this.params, 'xRotate', [ 'YW', 'YZ', 'ZW' ]); this.gui.add(this.params, 'xRotate', [ 'YW', 'YZ', 'ZW' ]);

View File

@ -69,8 +69,8 @@ export const cell5 = () => {
{ id:10, source:4, target: 5}, { id:10, source:4, target: 5},
], ],
geometry: { geometry: {
node_size: 0.05, node_size: 0.02,
link_size: 0.05 link_size: 0.02
} }
}; };
}; };
@ -86,8 +86,8 @@ export const cell16 = () => {
nodes: nodes, nodes: nodes,
links: links, links: links,
geometry: { geometry: {
node_size: 0.03, node_size: 0.02,
link_size: 0.03 link_size: 0.02
} }
}; };
}; };
@ -102,8 +102,8 @@ export const tesseract = () => {
nodes: nodes, nodes: nodes,
links: links, links: links,
geometry: { geometry: {
node_size: 0.03, node_size: 0.02,
link_size: 0.03 link_size: 0.02
} }
}; };
} }
@ -156,8 +156,8 @@ export const cell120 = () => {
nodes: nodes, nodes: nodes,
links: links, links: links,
geometry: { geometry: {
node_size: 0.01, node_size: 0.02,
link_size: 0.01 link_size: 0.02
} }
} }
@ -184,8 +184,8 @@ export const cell600 = () => {
nodes: nodes, nodes: nodes,
links: links, links: links,
geometry: { geometry: {
node_size: 0.003, node_size: 0.02,
link_size: 0.003 link_size: 0.02
} }
} }
} }