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 6. Using Advanced Geometries and Binary Operations

In the previous chapter we showed you all the basic geometries provided by Three.js. Besides these basic geometries, Three.js also offers a set of more advanced and specialized objects. In this chapter we'll show you these advanced geometries and cover the following subjects:

  • You'll learn how to use advanced geometries such as ConvexGeometry, LatheGeometry, and TubeGeometry.
  • We'll show you how to create 3D shapes from 2D shapes using the ExtrudeGeometry. We'll do this based on a 2D shape drawn using Three.js provided functionality, and we'll show an example where we created a 3D shape based on an externally loaded SVG image.
  • If you want to create custom shapes yourself, you can append the ...

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