Fixed bug in 120-cell coordinates, edges are working now

feature-big-polytopes
Mike Lynch 2023-07-28 07:08:41 +10:00
parent 3ba81a2f83
commit 1edbfbb98c
2 changed files with 5 additions and 5 deletions

View File

@ -120,7 +120,7 @@ const LINK_OPACITY = 0.7;
// 2 M 2 (0-2) B
const node_ms = [
new THREE.MeshStandardMaterial( { color: 0xc0c0c0 } ),
new THREE.MeshStandardMaterial( { color: 0xc0c0ff } ),
new THREE.MeshStandardMaterial( { color: 0x20dddd } ),
new THREE.MeshStandardMaterial( { color: 0xdddd20 } ),
new THREE.MeshStandardMaterial( { color: 0xdd20dd } ),
@ -136,7 +136,7 @@ for( const node_m of node_ms ) {
}
const link_ms = [
new THREE.MeshStandardMaterial( { color: 0xeeeeee } ),
new THREE.MeshStandardMaterial( { color: 0xc0c0ff } ),
new THREE.MeshStandardMaterial( { color: 0x20dd20 } ),
new THREE.MeshStandardMaterial( { color: 0xdd2020 } ),
new THREE.MeshStandardMaterial( { color: 0x2020dd } ),

View File

@ -252,10 +252,10 @@ function make_120cell_vertices() {
const phi2inv = 1 / phi2;
const nodes = [
PERMUTE.coordinates([2, 2, 0, 0], 0),
PERMUTE.coordinates([r5, 1, 1, 1], 1),
PERMUTE.coordinates([0, 0, 2, 2], 0),
PERMUTE.coordinates([1, 1, 1, r5], 1),
PERMUTE.coordinates([phi, phi, phi, phi2inv], 2),
PERMUTE.coordinates([phi, phiinv, phiinv, phiinv], 0),
PERMUTE.coordinates([phiinv, phiinv, phiinv, phi2], 0),
PERMUTE.coordinates([phi2, phi2inv, 1, 0], 1, true),
PERMUTE.coordinates([r5, phiinv, phi, 0], 2, true),