O'Reilly logo

Learning Three.js: The JavaScript 3D Library for WebGL by Jos Dirksen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Learning to Work with Geometries

In the previous chapters we've already learned a lot about how to work with Three.js. You know how to create a basic scene, add lighting, and configure the material for your meshes. In Chapter 2, Working with the Basic Components That Make Up a Three.js Scene, we touched upon the available geometries that Three.js provides, which you can use to create your 3D objects, but didn't really go into details. In this and the next chapter we'll walk you through all the geometries that Three.js provides out of the box. In this chapter we'll look at the following geometries:

  • PlaneGeometry
  • CircleGeometry
  • ShapeGeometry
  • CubeGeometry
  • SphereGeometry
  • CylinderGeometry
  • TorusGeometry
  • TorusKnotGeometry
  • PolyhedronGeometry
  • IcosahedronGeometry ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required