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

LatheGeometry

A LatheGeometry allows you to create shapes from a smooth curve. This curve is defined by a number of points (also called knots) and is most often called a spline. This spline is rotated around a fixed point and results in vase- and bell-like shapes. Once again, the easiest way to understand what a LatheGeometry does is by looking at an example. This geometry is shown in 02-advanced-3d-geometries-lathe.html:

LatheGeometry

In this screenshot you can see the spline as a set of small red spheres. The positions of these spheres are passed into the LatheGeometry constructor, together with a couple of other arguments. In this example we rotate this spline ...

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