scene = new THREE.Scene(); // Add a cube to the scene const geometry = new THREE.BoxGeometry(3, 1, 3); const material = new THREE.MeshLambertMaterial({ color: 0xff0000 }); const mesh = new THREE.Mesh(geometry, material); mesh.position.set(0, 0, 0); scene.add(mesh);