All examples · Meshes and 3D · As Markdown, for AIs

Shapes of your own

What this example shows

On the shelf, five pieces turned on a lathe with useLatheGeometry: each is half its outline, a handful of points from the bottom up, spun about the upright axis into a solid, as a turner shapes a chair leg or a potter a vase. A point on the axis closes the shape; a point given twice in a row is a hard edge. Press space for the faceted look of the time, six faces round.

In front, dunes made corner by corner with createGeometry, and moved by the wind every frame with updateGeometry: the corners are worked out again and written over what the card already holds. A shape made this way belongs to the object that made it and goes with it.

Starting
Starting
—