My goal is to design a model of an apartment with four rooms.
https://i.sstatic.net/3gPpG.jpg
To achieve this, I have created a transparent cube to represent one room, but now I am facing challenges in adding the other three sections.
https://i.sstatic.net/O9kwk.png
I am utilizing the three.js framework for this project.
// geometry
var geometry = new THREE.BoxGeometry( 20, 10, 20 );
// material
var material2 = new THREE.MeshPhongMaterial( {
color: 0xffffff,
transparent: false,
side: THREE.BackSide
} );
// mesh
mesh = new THREE.Mesh( geometry, material2 );
scene.add( mesh );