Right now I’m rendering a cube with wireframed edges:
var cubeGeometry = new THREE.BoxGeometry(2, 2, 2);
var wireframeGeometry = new THREE.EdgesGeometry(cubeGeometry);
var wireframeMaterial = new THREE.LineBasicMaterial({ color: 0x000000 });
var cube = new THREE.LineSegments(wireframeGeometry, wireframeMaterial);
Three.scene.add(cube);
This works but now I want to increase the “subdivision” of the edges so that it looks more like a wireframe Rubik’s cube. I tried increasing the BoxGeometry segments…
var cubeGeometry = new THREE.BoxGeometry(2, 2, 2, 3, 3, 3);
But this doesn’t change anything. EdgesGeometry still only renders the outermost edges.
If I want each face to have a # of intersecting edges (but not the diagonal lines you get with the WireframeGeometry), how would I do that?