Some of the boxes are not visible when the scene is rotated in some position.
The code pen is: https://codepen.io/gisfinder/pen/QWVmKJv
try setting your internal meshes to a lower renderOrder
than the external one…
for (let i = 0; i < 5; i++) {
const mesh2 = internalBox.clone();
mesh2.renderOrder = -1;
mesh2.position.set(0, 0, 8 * i);
scene.add(mesh2);
}
also see this
Thanks a lot. It works!