I attempted to create a 3D Rubik's Cube, but every time I include
cubelets.push(THREE.Mesh(
THREE.BoxGeometry(100,100,100,10,10,10),
THREE.MeshBasicMaterial({color: 0x000})
))
in the code snippet, an error message pops up in the console:
Uncaught TypeError: this.fromBufferGeometry is not a function Three.min.js:_____
I can't quite recall what belongs in the space marked by the ______, but you get the idea. Oddly enough, I haven't come across any similar issues reported by others.
Fiddle: https://jsfiddle.net/jzztbdvu/