THREE.BoxGeometry is a very simple 3D geometry that allows you to create a box by specifying its
depth properties. We’ve added an example,
box-geometry.html, where you can play around with these properties. The following screenshot shows this geometry:
Figure 5.9 – Basic 3D box geometry
As you can see in this example, by changing the
depth properties of
THREE.BoxGeometry, you can control the size of the resulting mesh. These three properties are also mandatory when you create a new cube, as follows:
width: This is the width of the cube. This...