Reinstated 120-cell faces
parent
bf0b0559ef
commit
3f95a17f45
|
@ -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);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
2
main.js
2
main.js
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue