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);
l.object = this.makeLink(material, l);
}
// for( const f of this.faces ) {
// const material = this.getMaterial(f, this.face_ms);
// f.object = this.makeFace(material, f);
// }
for( const f of this.faces ) {
const material = this.getMaterial(f, this.face_ms);
f.object = this.makeFace(material, f);
}
}
@ -141,9 +141,9 @@ class FourDShape extends THREE.Group {
this.updateLink(l);
}
// for( const f of this.faces ) {
// this.setFaceGeometry(f, f.object.geometry);
// }
for( const f of this.faces ) {
this.setFaceGeometry(f, f.object.geometry);
}
}

View File

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