5

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:

  • THREE.CircleGeometry
  • THREE.RingGeometry ...

Get Learn Three.js - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.