Exploring Advanced Geometries
In Chapter 5, Learning to Work with Geometries, 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:
- How to use advanced geometries such as
THREE.ConvexGeometry
,THREE.LatheGeometry
,THREE.BoxLineGeometry
,THREE.RoundeBoxGeometry
,THREE.TeapotGeometry
, andTHREE.TubeGeometry
. - How to create 3D shapes from 2D shapes using
THREE.ExtrudeGeometry
. We’ll create a 3D shape from a 2D SVG image, and we will extrude from 2D Three.js shapes to create novel 3D shapes. - If you want to create custom shapes yourself, you can continue playing with the ones we’ve discussed in the previous chapters. Three.js, however, also offers a
THREE.ParametricGeometry
object. With parametric geometry, you can create geometry with parameters you can change to effect the shape of...