Reinstated 120-cell faces

feature-faces
Mike Lynch 2023-07-31 17:37:19 +10:00
parent bf0b0559ef
commit 3f95a17f45
2 changed files with 9 additions and 7 deletions

View File

@ -121,10 +121,10 @@ class FourDShape extends THREE.Group {
const material = this.getMaterial(l, this.link_ms); const material = this.getMaterial(l, this.link_ms);
l.object = this.makeLink(material, l); l.object = this.makeLink(material, l);
} }
// for( const f of this.faces ) { for( const f of this.faces ) {
// const material = this.getMaterial(f, this.face_ms); const material = this.getMaterial(f, this.face_ms);
// f.object = this.makeFace(material, f); f.object = this.makeFace(material, f);
// } }
} }
@ -141,9 +141,9 @@ class FourDShape extends THREE.Group {
this.updateLink(l); this.updateLink(l);
} }
// for( const f of this.faces ) { for( const f of this.faces ) {
// this.setFaceGeometry(f, f.object.geometry); this.setFaceGeometry(f, f.object.geometry);
// } }
} }

View File

@ -7,6 +7,8 @@ import { rotfn } from './rotation.js';
import { FourDGUI } from './gui.js'; import { FourDGUI } from './gui.js';
import { FourDShape } from './fourDShape.js'; import { FourDShape } from './fourDShape.js';
const FACE_OPACITY = 0.3;
// scene, lights and camera // scene, lights and camera
const scene = new THREE.Scene(); const scene = new THREE.Scene();