Using Box Geometry to make cuboids and cubes
Box Geometry
const geometry = new THREE.BoxGeometry( 10, 20, 10, 1, 1 );
const material = new THREE.MeshNormalMaterial( {flatShading : false} );
const box = new THREE.Mesh( geometry, material );
scene.add( box );
animate();
function animate() {
...
vjk03.hashnode.dev1 min read