Learning to Work with Geometries
In the previous chapters, you learned a lot about how to work with Three.js. Now you know how to create a basic scene, add lighting, and configure the material for your meshes. In Chapter 2, The Basic Components That Make Up a Three.js Scene, we touched upon (but didn’t really go into) the details of the available geometries that Three.js provides and that you can use to create your 3D objects. In this chapter and Chapter 6, Exploring Advanced Geometries, we’ll walk you through all the geometries that Three.js provides out of the box (except
THREE.Line, which we discussed in Chapter 4, Working with Three.js Materials).
In this chapter, we’ll look at the following geometries: